riebel / socketio-es6-starter

ES6/ES2015 chat example using node.js, socket.io, gulp, webpack (for client) and babel (for server).
https://socketio-es6-starter.herokuapp.com/
79 stars 20 forks source link

Sending more data over the wire than necessary #4

Open TomYeoman opened 1 year ago

TomYeoman commented 1 year ago

Just a heads up, no need to pass username in every message, you already verified the username on connect (and therefore have the username in the closure scope on the server, to use when receiving a message).