zorchenhimer / MovieNight

Single instance video streaming server with integrated chat.
https://discord.gg/F2VSgjJ
MIT License
683 stars 87 forks source link

Convert websocket communication from just text to json based objects #22

Closed joeyak closed 5 years ago

joeyak commented 5 years ago

Right now communication between server and client is just via text being sent. The first message is the username, and commands start with /. It would be better to have a standard way of sending messages via objects. With the webassembly change, this will make customizable communication easier. It might be better to get this done before https://github.com/zorchenhimer/MovieNight/issues/17 since sending the username is the first message for now.

zorchenhimer commented 5 years ago

This should be all set as of 4025622. Probably needs some cleanup, but it works so far.