- Remove unnecessary
dependency_overrides
. - Remove obsolete documentation for
WebSocketChannel.new
. - Update package
web: '>=0.5.0 <2.0.0'
.
- Provide an adapter around
package:web_socket
WebSocket
s and make it the default implementation forWebSocketChannel.connect
. - BREAKING: Remove
WebSocketChannel
constructor. - BREAKING: Make
WebSocketChannel
anabstract interface
. - BREAKING:
IOWebSocketChannel.ready
will throwWebSocketChannelException
instead ofWebSocketException
.
- use secure random number generator for frame masking.
- Require Dart
^3.3
- Require
package:web
^0.5.0
.
HtmlWebSocketChannel
: Relax the type of the websocket parameter to the constructor in order to mitigate a breaking change introduced in2.4.1
.
- Allow
web: '>=0.3.0 <0.5.0'
- Update the examples to use
WebSocketChannel.ready
and clarify thatWebSocketChannel.ready
should be awaited before sending data over theWebSocketChannel
. - Mention
ready
in the docs forconnect
. - Bump minimum Dart version to 3.2.0
- Move to
pkg:web
to support WebAssembly compilation.
- Add a
customClient
parameter to theIOWebSocketChannel.connect
factory, which allows the user to provide a customHttpClient
instance to use for the WebSocket connection - Bump minimum Dart version to 2.15.0
- Added a Future
ready
property toWebSocketChannel
, which completes when the connection is established - Added a
connectTimeout
parameter to theIOWebSocketChannel.connect
factory, which controls the timeout of the WebSocket Future. - Use platform agnostic code in README example.
- Add
HtmlWebSocketChannel.innerWebSocket
getter to access features not exposed through the sharedWebSocketChannel
interface.
- Add
IOWebSocketChannel.innerWebSocket
getter to access features not exposed through the sharedWebSocketChannel
interface.
- Support null safety.
- Require Dart 2.12.
- Add
protocols
argument toWebSocketChannel.connect
. See the docs forWebSocket.connet
. - Allow the latest crypto release (
3.x
).
- Add
WebSocketChannel.connect
factory constructor supporting platform independent creation of WebSockets providing the lowest common denominator of support on dart:io and dart:html.
- bug fix don't pass protocols parameter to WebSocket.
- Updates to handle
Socket implements Stream<Uint8List>
- Internal changes for consistency with the Dart SDK.
- Allow
stream_channel
version 2.x
-
Fixed description in pubspec.
-
Fixed lints in README.md.
-
Fixed links in README.md.
-
Added an example.
-
Fixed analysis lints that affected package score.
- Set max SDK version to
<3.0.0
.
- Remove use of deprecated constant name.
- Support the latest dev SDK.
- Declare support for
async
2.0.0.
- Increase the SDK version constraint to
<2.0.0-dev.infinity
.
- Support
crypto
2.0.0.
-
Fix all strong-mode errors and warnings.
-
Fix a bug where
HtmlWebSocketChannel.close()
would crash on non-Dartium browsers if the close code and reason weren't provided explicitly.
- Properly use
BASE64
fromdart:convert
rather thancrypto
.
- Add support for
crypto
1.0.0.
- Initial version