VortexConnection * vortex_websocket_listener_new ( VortexCtx ctx,
noPollConn *  listener,
VortexListenerReadyFull  on_ready_full,
axlPointer  user_data 

Allows to create a new BEEP listener accepting connections over WebSocket.

The function accepts the noPollConn reference of the WebSocket listener already running through which BEEP clients will connect using webSocket as transport protocol.

ctxThe context where the operation is taking place.
listenerThe noPollConn listener on top this new BEEP listener is going to run.
on_ready_fullThe on ready function as defined by vortex_listener_new_full.
user_dataUser defined pointer to be passed in into on_ready_full function when called.
The function returns a newly created BEEP listener (over WebSocket) or NULL if the optional handler is provided (on_ready). See vortex_listener_new_full to know more about the value returned by this function as this function is just a wrapper to it, providing the needed bridging between BEEP and WebSocket.

References vortex_connection_get_host(), vortex_connection_get_id(), vortex_connection_get_port(), vortex_connection_is_ok(), vortex_connection_new_empty(), vortex_connection_ref_count(), vortex_connection_set_data_full(), vortex_connection_set_hook(), vortex_connection_set_preread_handler(), and VortexRoleMasterListener.