diff --git a/lib/src/socket.dart b/lib/src/socket.dart index f14f213..9c289dd 100644 --- a/lib/src/socket.dart +++ b/lib/src/socket.dart @@ -142,9 +142,7 @@ class Socket extends EventEmitter { super.emit(event, data); } else { var sendData = [event]; - if (data is Iterable) { - sendData.addAll(data); - } else if (data != null) { + if (data != null) { sendData.add(data); }