OpenHausIO / connector

Connector between backend & local network
MIT License
1 stars 2 forks source link

WebSocket client implementation #3

Closed mStirner closed 1 year ago

mStirner commented 2 years ago

How to handle WebSockets? -> WebSockets fucks up the protocol handling on the server side. WS messages tunneld inside WS messages are wrong pared/handeld in the backend.

[backend] <-> [websockets] <-> [connector] <-> [device]
|----------- WAN  ----------|----------- LAN ---------|

Because we use WebSockets as streams/transportation, if we connect to a device interface via WebSockets, this messages get misinterpreted on the backend.

A possible solution would be to "wrap" everything.