googollee / go-socket.io

socket.io library for golang, a realtime application framework.
Other
5.7k stars 836 forks source link

how to forward msg via redis to make cluster? #404

Open beanhacker opened 3 years ago

erkie commented 3 years ago

This is not implemented currently. You could add an extra layer on top of this library yourself to deal with load balancing. We do that using the on connect, on disconnect hooks to record what client is connected to what server, and https://github.com/digitalocean/go-workers2 to send messages to the correct server.