socket.io-client-dart icon indicating copy to clipboard operation
socket.io-client-dart copied to clipboard

type 'String' is not a subtype of type 'int' of 'index'

Open ChiJohn opened this issue 6 months ago • 2 comments

The following _TypeError was thrown: type 'String' is not a subtype of type 'int' of 'index'

When the exception was thrown, this was the stack: #0 Socket.onpacket (package:socket_io_client/src/socket.dart:398:53) #1 EventEmitter._emit. (package:socket_io_common/src/util/event_emitter.dart:44:14) #2 List.forEach (dart:core-patch/growable_array.dart:416:8) #3 EventEmitter._emit (package:socket_io_common/src/util/event_emitter.dart:43:11) #4 EventEmitter.emitReserved (package:socket_io_common/src/util/event_emitter.dart:57:47) #5 Manager.ondecoded. (package:socket_io_client/src/manager.dart:276:7) (elided 11 frames from dart:async)

ChiJohn avatar Aug 12 '24 06:08 ChiJohn