xconnio/xconn-go

Integrate workerpool for websocket pings

om26er opened this issue · 0 comments

https://github.com/xconnio/workerpool

WebSocket ping should be instantly responded with a pong message. However when the server is the one to send ping to a client, instead of running one goroutine per client, we will integrate worker pool, which essentially has an internal "ticker" every second and it sends ping message to any potential client(s).