Send binary to websocket proxy

Websockify 0.9.0 rejected receiving text frame:
8eb5cb0cdc
We have to switch to binary frame instead.

Change-Id: Ie1525c673104588760ec78a3c996103da08b42d1
Closes-Bug: #1847889
(cherry picked from commit bc1cfd9737)
This commit is contained in:
Hongbin Lu 2019-10-13 02:56:11 +00:00
parent d6845df3b5
commit 2ab88791f9
1 changed files with 1 additions and 1 deletions

View File

@ -261,7 +261,7 @@ class WebSocketClient(BaseClient):
return self.ws.fileno()
def send(self, data):
self.ws.send(data)
self.ws.send_binary(data)
def recv(self):
return self.ws.recv()