Skip to content

Socket

This class represents a Socket.IO namespace.

Fields:

SocketManager Manager

The SocketManager instance that created this socket.

String Namespace

The namespace that this socket is bound to.

String Id

Unique Id of the socket.

Boolean IsOpen

True if the socket is connected and open to the server. False otherwise.

Methods:

Void Disconnect()

Disconnects this socket/namespace.

EmitBuilder Volatile()

By emitting a volatile event, if the transport isn't ready the event is going to be discarded.

Void Off()

Remove all callbacks for all events.

Void Off(String)

Removes all callbacks to the given event.

Void Off(SocketIOEventTypes)

Removes all callbacks to the given event.

Comments