Struct thruster_socketio::SocketIO
source · [−]pub struct SocketIO { /* private fields */ }
Implementations
use_handler isn’t implemented yet.
on adds a listener for a particular event
join joins a socket into a room. This makes every message sent by that socket go to the room rather than globally.
leave removes a socket from a room. Note that you cannot remove a socket from its default room, i.e. its SID. This will result in a noop.
emit_to sends a message to all sockets connected to the given room_id, including the sending socket.
broadcast_to sends a message to all the sockets connected to the given room_id, excluding the sending socket.
Trait Implementations
Auto Trait Implementations
impl !RefUnwindSafe for SocketIOSocket
impl Send for SocketIOSocket
impl Sync for SocketIOSocket
impl Unpin for SocketIOSocket
impl !UnwindSafe for SocketIOSocket
Blanket Implementations
Mutably borrows from an owned value. Read more
pub fn vzip(self) -> V
Attaches the provided Subscriber
to this type, returning a
WithDispatch
wrapper. Read more
Attaches the current default Subscriber
to this type, returning a
WithDispatch
wrapper. Read more