queue-run icon indicating copy to clipboard operation
queue-run copied to clipboard

WebSocket routing based on message

Open assaf opened this issue 3 years ago • 0 comments

The idea is to have specific message handler. Maybe:

  • socket/action_join.ts for all messages that contain action: "join"
  • socket/[room].ts for all messages that contain the property room (any value)
  • socket/[room]/action_join.ts for all messages that specify a room and the action "join"
  • socket/index.ts is the catch-all

assaf avatar Jan 23 '22 19:01 assaf