Skip to content

Commit

Permalink
Merge branch 'master' into protocol-support
Browse files Browse the repository at this point in the history
  • Loading branch information
brianquinlan committed Mar 5, 2024
2 parents 693c35c + e71e739 commit 608b4ce
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
3 changes: 1 addition & 2 deletions pkgs/web_socket/example/web_socket_example.dart
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import 'dart:convert';
import 'dart:io';

import 'package:web_socket/io_web_socket.dart';
import 'package:web_socket/web_socket.dart';

const requestId = 305;
Expand All @@ -11,7 +10,7 @@ void main() async {
// Whitebit public WebSocket API documentation:
// https://docs.whitebit.com/public/websocket/
final socket =
await IOWebSocket.connect(Uri.parse('wss://api.whitebit.com/ws'));
await WebSocket.connect(Uri.parse('wss://api.whitebit.com/ws'));

socket.events.listen((e) {
switch (e) {
Expand Down
4 changes: 4 additions & 0 deletions pkgs/web_socket/lib/src/connect_stub.dart
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
// Copyright (c) 2024, the Dart project authors. Please see the AUTHORS file
// for details. All rights reserved. Use of this source code is governed by a
// BSD-style license that can be found in the LICENSE file.

import '../web_socket.dart';

Future<WebSocket> connect(Uri url, {Iterable<String>? protocols}) {
Expand Down
7 changes: 4 additions & 3 deletions pkgs/web_socket/pubspec.yaml
Original file line number Diff line number Diff line change
@@ -1,8 +1,9 @@
name: web_socket
description: "TODO: enter a descirption here"
description: >-
Any easy-to-use library for communicating with WebSockets
that has multiple implementations.
repository: https://github.com/dart-lang/http/tree/master/pkgs/web_socket

publish_to: none
version: 0.1.0-wip

environment:
sdk: ^3.3.0
Expand Down

0 comments on commit 608b4ce

Please # to comment.