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
When using Socket.io with Flutter Web and sending ArrayBuffers over the pipe, the browser throws the following exception:
Uncaught Error: NoSuchMethodError: '[]'
Dynamic call of null.
Receiver: Instance of 'NativeByteBuffer'
Arguments: [0]
at Object.throw_ [as throw] (errors.dart:196)
at Object.defaultNoSuchMethod (operations.dart:667)
at ArrayBuffer.noSuchMethod (core_patch.dart:63)
at Object.noSuchMethod (operations.dart:662)
at callNSM (operations.dart:255)
at Object._checkAndCall (operations.dart:268)
at Object.callMethod (operations.dart:390)
at Object.dsend (operations.dart:394)
at Function.decodePacket (parser.dart:170)
at websocket_transport.WebSocketTransport.new.onData (transport.dart:121)
at websocket_transport.dart:59
at Object._checkAndCall (operations.dart:326)
at Object.dcall (operations.dart:331)
at WebSocket.<anonymous> (html_dart2js.dart:35657)
I saw, that the required code portion is in place, but unfortunately commented out.
When using Socket.io with Flutter Web and sending ArrayBuffers over the pipe, the browser throws the following exception:
I saw, that the required code portion is in place, but unfortunately commented out.
https://github.com/rikulo/socket_io_common/blob/master/lib/src/engine/parser/parser.dart#L167
I tried adapting the implementation to automatically detect the
ArrayBuffer
, and it seems to (at least) stop throwing exceptions:Would this be a suitable approach?
The text was updated successfully, but these errors were encountered: