denprog
denprog
I've got a simple python server to test: ``` from simple_websocket_server import WebSocketServer, WebSocket class SimpleEcho(WebSocket): def handle(self): # echo message back to client self.send_message(self.data) def connected(self): print(self.address, 'connected') def...
What I see in Wireshark: In Firefox, where all is ok: ``` GET / HTTP/1.1 Host: 127.0.0.1:8010 User-Agent: Mozilla/5.0 (X11; Ubuntu; Linux x86_64; rv:109.0) Gecko/20100101 Firefox/110.0 Accept: */* Accept-Language: ru-RU,ru;q=0.8,en-US;q=0.5,en;q=0.3...
I did it with web socket in JS. I call JS wrappers from C++, do send/receive, and return result into C++.