rikulo / socket.io-client-dart

socket.io-client-dart: Dartlang port of socket.io-client https://github.com/socketio/socket.io-client
https://quire.io
MIT License
676 stars 186 forks source link

Bug: type 'Null' is not a subtype of type 'bool' #393

Closed hnvn closed 2 months ago

hnvn commented 2 months ago

The following line code throws this error:

https://github.com/rikulo/socket.io-client-dart/blob/d91a970e77842a3645ee9e8bc13c3cab425b3a70/lib/src/socket.dart#L173C20-L173C28

type 'Null' is not a subtype of type 'bool'
      Socket.emitWithAck (package:socket_io_client/src/socket.dart:173:64)
      Socket.emit (package:socket_io_client/src/socket.dart:138:5)

The reason is flags['compress'] returning null