Logsig / kusa-rs

A high-performance IoT Server
MIT License
1 stars 0 forks source link

Implement WebSocket communication pipe #1

Open digitake opened 4 years ago

digitake commented 4 years ago

According to the plan, the server will use the WebSocket binary protocol to communicate to edge devices. Since WebSocket is just a standard HTTP, so it likely is able to work pass firewall. And Binary mode of communication will provide more memory-efficient need for the end device.

digitake commented 4 years ago

The WebSocket library was introduced. But it does not take any connection due to error 54(likely ssl related)

digitake commented 4 years ago

Also, debating between tokio-websocket vs tokio-tungstenite. The tungstanite seems to have easier call interface. But WebSocket exist for longer and seems more tested.