Skip to content

Commit 9d9edcc

Browse files
authored
Update websocket_web_impl.dart (#345)
This issue cause the web build. I solved this issue with adding this code block.
1 parent 88b8317 commit 9d9edcc

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

lib/src/transports/websocket_web_impl.dart

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,13 +9,14 @@ typedef OnCloseCallback = void Function(int? code, String? reason);
99
typedef OnOpenCallback = void Function();
1010

1111
class WebSocketImpl {
12-
WebSocketImpl(this._url);
12+
WebSocketImpl(this._url, this.messageDelay);
1313

1414
final String _url;
1515
WebSocket? _socket;
1616
OnOpenCallback? onOpen;
1717
OnMessageCallback? onMessage;
1818
OnCloseCallback? onClose;
19+
final int messageDelay;
1920

2021
void connect(
2122
{Iterable<String>? protocols,

0 commit comments

Comments
 (0)