pub fn socket_layer() -> (SocketIoLayer, SocketIo)Expand description
A fresh Socket.IO layer and its handle.
Attach controllers to the handle, then mount the layer on a router
— either this crate’s run_socket_controllers or your own, if
the process already serves HTTP and you want one listener.