You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hello!
I'm encountering an error that seems to be related to the library when trying to connect to a WS using SockJS like that: var transportPlatform = new BrowserTransportPlatformWithSockJS( sockJSNoCredentials: true, sockJSDebug: true, sockJSProtocolsWhitelist: ['xhr-streaming', 'websocket'], sockJSTimeout: const Duration(seconds: 10));
Hello!
I'm encountering an error that seems to be related to the library when trying to connect to a WS using SockJS like that:
var transportPlatform = new BrowserTransportPlatformWithSockJS( sockJSNoCredentials: true, sockJSDebug: true, sockJSProtocolsWhitelist: ['xhr-streaming', 'websocket'], sockJSTimeout: const Duration(seconds: 10));
await transport.WebSocket.connect(Uri.parse(url), transportPlatform: transportPlatform)
Error:
E/flutter (24053): [ERROR:flutter/shell/common/shell.cc(184)] Dart Error: Unhandled exception: E/flutter (24053): 'package:w_transport/src/web_socket/browser/sockjs.dart': error: line 37 pos 12: /flutter/.pub-cache/hosted/pub.dartlang.org/w_transport-3.2.8/lib/src/web_socket/browser/sockjs.dart:37:12: Error: Getter not found: 'context'. E/flutter (24053): if (js.context.hasProperty('SockJS')) { E/flutter (24053): ^^^^^^^ E/flutter (24053): if (js.context.hasProperty('SockJS')) { E/flutter (24053): ^ E/flutter (24053): E/flutter (24053): #0 _AsyncAwaitCompleter.start (dart:async/runtime/libasync_patch.dart:49:6) E/flutter (24053): #1 SockJSWebSocket.connect (package:w_transport/src/web_socket/browser/sockjs.dart:28:35) E/flutter (24053): #2 BrowserTransportPlatformWithSockJS.newWebSocket (package:w_transport/src/browser_transport_platform_with_sockjs.dart:76:28) E/flutter (24053): #3 WebSocket.connect (package:w_transport/src/web_socket/web_socket.dart:128:32)
Any ideas on what could it be?
The text was updated successfully, but these errors were encountered: