lets_code_javascript icon indicating copy to clipboard operation
lets_code_javascript copied to clipboard

socket_io_abstraction wraps emitted arguments in a single object.

Open aquamoth opened this issue 7 years ago • 1 comments

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.. :)

aquamoth avatar Jan 09 '18 19:01 aquamoth

Thanks! As always I'll not be merging the pull request directly, but it may show up on camera at some point.

jamesshore avatar Jan 10 '18 21:01 jamesshore