SocketIoPrivateChannel class
This class represents a Socket.io presence channel.
- Inheritance
-
- Object
- Channel
- SocketIoChannel
- SocketIoPrivateChannel
- Implemented types
Constructors
- SocketIoPrivateChannel(Socket socket, String name, ConnectorOptions options)
Properties
-
events
→ Map<
String, dynamic> -
The event callbacks applied to the socket.
finalinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
listeners
→ Map<
String, List> -
User supplied callbacks for events on this channel
finalinherited
- name → String
-
The name of the channel.
finalinherited
- options → ConnectorOptions
-
The Echo options.
finalinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- socket → Socket
-
The Socket.io client instance.
finalinherited
Methods
-
error(
Function callback) → SocketIoChannel -
Register a callback to be called anytime an error occurs.
inherited
-
listen(
String event, Function callback) → SocketIoChannel -
Listen for an event on the channel instance.
inherited
-
listenForWhisper(
String event, Function callback) → Channel -
Listen for a whisper event on the channel instance.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
notification(
Function callback) → Channel -
Listen for an event on the channel instance.
inherited
-
on(
String event, Function callback) → SocketIoChannel -
Bind the channel's socket to an event and store the callback.
inherited
-
onSubscribedSuccess(
Function callback) → SocketIoChannel -
listen to on subscribe success event
override
-
stopListening(
String event, [Function? callback]) → SocketIoChannel -
Stop listening for an event on the channel instance.
inherited
-
stopListeningForWhisper(
String event, [Function? callback]) → Channel -
Stop listening for a whisper event on the channel instance.
inherited
-
subscribe(
) → void -
Subscribe to a Socket.io channel.
inherited
-
subscribed(
Function callback) → SocketIoChannel -
Register a callback to be called anytime a subscription succeeds.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
-
unbind(
) → void -
Unbind the channel's socket from all stored event callbacks.
inherited
-
unsubscribe(
) → void -
Unsubscribe from channel and unbind event callbacks.
inherited
-
whisper(
String eventName, dynamic data) → SocketIoPrivateChannel -
Trigger client event on the channel.
override
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited