ActionCable class

Constructors

ActionCable.connect(String url, {Map<String, String> headers = const {}, VoidCallback? onConnected, VoidCallback? onConnectionLost, required void onCannotConnect(dynamic reason)?})
Factory for connect to ActionCable on Rails

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

disconnect() → void
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
subscribe(String channelName, {Map? channelParams, VoidCallback? onSubscribed, VoidCallback? onDisconnected, List<ActionCallback> callbacks = const []}) ActionChannel
Subscribe to a channel
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited