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
This commit is contained in:
Hongbin Lu 2019-10-13 02:56:11 +00:00
parent 54b24b3a73
commit bc1cfd9737

View File

@ -263,7 +263,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()