From 9a10844013afbcc532040f2f293b4fadbf116acf Mon Sep 17 00:00:00 2001 From: sdtokkolabs <31551433+sdtokkolabs@users.noreply.github.com> Date: Thu, 21 Dec 2017 17:08:00 -0300 Subject: [PATCH] Changes the way stream writes data to channel --- stream/ws_client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/stream/ws_client.py b/stream/ws_client.py index 1cc56cdd..ac7dd281 100644 --- a/stream/ws_client.py +++ b/stream/ws_client.py @@ -111,7 +111,7 @@ def readline_channel(self, channel, timeout=None): def write_channel(self, channel, data): """Write data to a channel.""" - self.sock.send(chr(channel) + data) + self.sock.send(bytearray((channel,)) + data) def peek_stdout(self, timeout=0): """Same as peek_channel with channel=1."""