talostrading / sonic

Sonic is a Go library for network and I/O programming that provides developers with a consistent asynchronous model, with a focus on achieving the lowest possible latency and jitter in Go.
MIT License
662 stars 16 forks source link

Implement websocket server example #128

Open martirosharutyunyan opened 2 months ago

sergiu128 commented 2 months ago

You can give it a try! There's a server for testing the client in codec/websocket/test_main.go: https://github.com/talostrading/sonic/blob/master/codec/websocket/test_main.go#L16.

You'll essentially need to implement the server side of the WebSocket handshake, as coded above, to then bootstrap a Stream.