I'm hoping others will see this code and realize it's okay to write a layer on top of WebSockets without needing a library. This part of the app is quite custom, and there's already app-specific things I've done here, like a single room, like JSON messages, a msg_id, and the "join" command. It's far easier to adapt it for my game then write a library that I'll fight with!
For further actions, you may consider blocking this person and/or reporting abuse
We're a place where coders share, stay up-to-date and grow their careers.
I think you should keep it generic since the game's needs for scaling are reasonably modest anyway and open source the code instead for others to use.
I'm hoping others will see this code and realize it's okay to write a layer on top of WebSockets without needing a library. This part of the app is quite custom, and there's already app-specific things I've done here, like a single room, like JSON messages, a msg_id, and the "join" command. It's far easier to adapt it for my game then write a library that I'll fight with!