From 40fecfbccc237c14a0ea54cb60d4fbf7f4155584 Mon Sep 17 00:00:00 2001 From: Tom Connell Date: Fri, 1 Jul 2022 12:39:00 -0600 Subject: [PATCH] Update sockjs_wrapper.dart --- lib/src/web_socket/browser/sockjs_wrapper.dart | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/src/web_socket/browser/sockjs_wrapper.dart b/lib/src/web_socket/browser/sockjs_wrapper.dart index 2f5bdbc8..1c744706 100644 --- a/lib/src/web_socket/browser/sockjs_wrapper.dart +++ b/lib/src/web_socket/browser/sockjs_wrapper.dart @@ -66,7 +66,7 @@ class SockJSWrapperWebSocket extends CommonWebSocket implements WebSocket { // TODO: pass `debug`, `noCredentials`, and `timeout` through when possible. final client = SockJSClient(sockjsUri, - options: SockJSOptions(transports: protocolsWhitelist)); + options: SockJSOptions(transports: protocolsWhitelist, timeout: timeout.inMilliseconds)); // Listen for and store the close event. This will determine whether or // not the socket connected successfully, and will also be used later