Skip to content

Universal websocket handler for both client and servers in JS

Notifications You must be signed in to change notification settings

Hild-Franck/weso

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Not my work. Put here with the permission of the creator See here for the original work

weso

Universal websocket handler for both client and servers in JS

for more details on the protocol,

`npm install weso`

Usage example :

checkout my server for node and client for the browser

the default protocol :

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.

About

Universal websocket handler for both client and servers in JS

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published