From 09d8d5d0d40d71e246d5c1a1ba8d2375b591f833 Mon Sep 17 00:00:00 2001 From: Eric Seidler Date: Thu, 5 Jan 2017 21:12:07 -0600 Subject: [PATCH] check message type before yielding message data --- socketio/zmq_manager.py | 1 + 1 file changed, 1 insertion(+) diff --git a/socketio/zmq_manager.py b/socketio/zmq_manager.py index f5e6361..12dfe89 100644 --- a/socketio/zmq_manager.py +++ b/socketio/zmq_manager.py @@ -104,6 +104,7 @@ class ZmqManager(PubSubManager): # pragma: no cover if isinstance(message, str): message = pickle.loads(message) if isinstance(message, dict) and \ + message['type'] == 'message' and \ message['channel'] == self.channel and \ 'data' in message: yield message['data']