Skip to content

Instantly share code, notes, and snippets.

@tsh-code
Created November 18, 2019 08:48
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tsh-code/6437212f3024a1f4877eb759cf1f038e to your computer and use it in GitHub Desktop.
Save tsh-code/6437212f3024a1f4877eb759cf1f038e to your computer and use it in GitHub Desktop.
io.on("connection", socket => {
socket.on("message", message => {
commandBus.handle({
...message,
socketId: socket.id
})
});
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment