Ape / samsungctl

Remote control Samsung televisions via a TCP/IP connection
MIT License
712 stars 189 forks source link

I look that the Sec-WebSocket-Key inconsistent with the server response #126

Open simonwanghub opened 3 years ago

simonwanghub commented 3 years ago

--- request header --- GET /api/v2/channels/samsung.remote.control HTTP/1.1 Upgrade: websocket Host: 192.168.35.116:8001 Origin: http://192.168.35.116:8001 Sec-WebSocket-Key: Xhi+Wn7pn3FbOmssyQkG6Q== Sec-WebSocket-Version: 13 Connection: upgrade


--- response header --- HTTP/1.1 101 Switching Protocols Upgrade: websocket Connection: Upgrade Sec-WebSocket-Accept: 3rADUUV+VGKaW0MqBwwSpMa4Mm0=

<websocket._app.WebSocketApp object at 0x102613ef0> {"event":"ms.channel.timeOut"} send: b'\x88\x82\x93S\x05\xe5\x90\xbb' <websocket._app.WebSocketApp object at 0x102613ef0>

closed

How can i get Sec-WebSocket-Key and make sure the Settings are correct?