lets_code_javascript
lets_code_javascript copied to clipboard
socket_io_abstraction wraps emitted arguments in a single object.
Here is my suggestion on how to streamline the emitter in E584.
This is simple enough, but it's up to coding style if you like to wrap single arguments in an object too, like I do here, or if you prefer to sometimes emit an integer and at other times emit an object.
As always you do as you like with this code.. :)
Thanks! As always I'll not be merging the pull request directly, but it may show up on camera at some point.