Function to add websocket handling middleware
ws(jug, path, ...)
Arguments
jug |
the jug object |
path |
the path to bind to |
... |
functions (order matters) to bind to the path (will receive the params req , res and err ) |
See also
post
, put
, delete
, get
, get