WebSocket n2o_stream
is implemented cowboy_websocket_handler behaviour for WS protocol
and cowboy_http_handler handler for XHR protocol. Both protocols are supported in single file.
This module is only for using N2O with cowboy web server.
API
The n2o_proto protocol loop is compatible with cowboy and emqttd versions of N2O.
The main purpose of this API is to embed N2O into your functional endpoint.
In other cases it's called automatically by configuration.