From c5b87ce76533cb422df3a20f6f041b0f2d782044 Mon Sep 17 00:00:00 2001 From: Pascal Stech Date: Wed, 18 Mar 2020 16:04:27 +0100 Subject: [PATCH] Add an Iterable as single buffer --- lib/src/socket.dart | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) 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); }