When you do `acceptWebsocket()`, you can

When you do acceptWebsocket(), you can include a topic string Param after the socket param, then you can get only sockets associated with a topic when doing getWebSockets(topic) Why can't your client make many connections? WebSockets are relatively low overhead for the frontend when they aren't actively received data
2 Replies
Ryan
Ryan2w ago
Chrome limits websockets to 30 per domain, so it's probably not a good idea to use one for each conversation. Ideally you only need 1 for all connections
1984 Ford Laser
1984 Ford LaserOP2w ago
Yeah okay didn't realise this. Might need to rethink the architecture a bit maybe

Did you find this page helpful?