Not my work. Put here with the permission of the creator See here for the original work
Universal websocket handler for both client and servers in JS
for more details on the protocol,
`npm install weso`
checkout my server for node and client for the browser
the separator
is a colon (':'
)
the websocket message MUST start with a key that doesn't contains the separator
It is recommanded to use camelCase and only alphanumeric characters so the shorthands are handy to use later on in JS, but you are free to do what ever you want.
The part after the separator
is then parsed in JSON
That's pretty much it.