queue-run
queue-run copied to clipboard
WebSocket routing based on message
The idea is to have specific message handler. Maybe:
-
socket/action_join.tsfor all messages that containaction: "join" -
socket/[room].tsfor all messages that contain the propertyroom(any value) -
socket/[room]/action_join.tsfor all messages that specify a room and the action "join" -
socket/index.tsis the catch-all