Remove channel id from exec response in blocking mode

This commit is contained in:
mbohlool 2017-02-24 14:11:29 -08:00
parent a2b3d5dbe9
commit fc8a31b2d1

View File

@ -168,11 +168,13 @@ class WSClient:
data = frame.data
if six.PY3:
data = data.decode("utf-8")
self._all += data
if len(data) > 1:
channel = ord(data[0])
data = data[1:]
if data:
# keeping all messages in the order they received for
# non-blocking call.
self._all += data
if channel not in self._channels:
self._channels[channel] = data
else: