Merge pull request #142 from mbohlool/master

Remove channel id from exec response in blocking mode
This commit is contained in:
Mehdy Bohlool 2017-02-24 15:31:31 -08:00 committed by GitHub
commit db29d8af16

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: