Skip to content

Latest commit

 

History

History
32 lines (22 loc) · 434 Bytes

README.md

File metadata and controls

32 lines (22 loc) · 434 Bytes

Websocket handler

Implementation of golang websocket server that allows clients to subscribe/unsubscribe to multiple topics

Start websocket server

go run cmd/server/main.go

Connect to websocket server

wscat -c 127.0.0.1:8080/ws

Subscribe to one or more topics

subscribe A B

Unsubscribe from one or more topics

unsubscribe B

Unsubscribe from all topics

unsubscribe