Our great sponsors
-
Centrifugo
Scalable real-time messaging server in a language-agnostic way. Self-hosted alternative to Pubnub, Pusher, Ably. Set up once and forever.
Mb try something like this https://github.com/centrifugal/centrifugo?
-
I had to deal with similar questions a few weeks ago and got inspired by https://github.com/gorilla/websocket/tree/master/examples/chat. My first prototype was written in go with zero dependencies (neither websockets, nor postgres. stdlib-only). Basically each organization gets its own channel (e.g. chan []byte) while publishing messages (to specific receivers) is realized using a message broker that knows all receivers. A parameter in the Publish method decides which message is send to which receivers. Check out the the run() method in hub.go to get an idea.
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
Related posts
- WebSockets vs. Server-Sent-Events vs. Long-Polling vs. WebRTC vs. WebTransport
- Centrifugo v5.1.0 released, with new powers for real-time messaging tasks, now with proxy GRPC subscription streams – similar to WebSocketd but over the network
- Integrating websockets into my current app
- As gorilla websocket has been archived which library can we use?
- Millions of Active WebSockets with Node.js