LaravelEcho<ClientType, ChannelType> class
Constructors
-
LaravelEcho(StorageDatabase storageDatabase, Connector<
ClientType, ChannelType> connector, List<LaravelEchoMigration> migrations)
Properties
-
connector
↔ Connector<
ClientType, ChannelType> -
The broadcasting connector.
getter/setter pairinherited
- hashCode → int
-
The hash code for this object.
no setterinherited
-
migrations
↔ List<
LaravelEchoMigration> -
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- socketId → String?
-
Get the Socket ID for the connection.
no setterinherited
- storageDatabase → StorageDatabase
-
final
Methods
-
channel(
String channel) → Channel -
Get a channel instance by name.
inherited
-
connect(
) → void -
Create a connection.
inherited
-
disconnect(
) → void -
Disconnect from the Echo server.
override
-
encryptedPrivate(
String channel) → Channel? -
Get a private encrypted channel instance by name.
inherited
-
join(
String channel) → PresenceChannel -
Get a presence channel instance by name.
inherited
-
leave(
String channel) → void -
Leave the given channel, as well as its private and presence variants.
inherited
-
leaveChannel(
String channel) → void -
Leave the given channel.
inherited
-
listen(
String channel, String event, Function callback) → Channel -
Listen for an event on a channel instance.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
presence(
String channel) → PresenceChannel -
Get a presence channel instance by name.
inherited
-
private(
String channel) → PrivateChannel -
Get a private channel instance by name.
inherited
-
removeMigration(
LaravelEchoMigration migration) → dynamic -
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Static Methods
-
pusher(
StorageDatabase storageDatabase, String appKey, List< LaravelEchoMigration> migrations, {required String authEndPoint, Map<String, String> authHeaders = const {'Content-Type' : 'application/json'}, String? cluster, required String host, int wsPort = 80, int wssPort = 443, bool encrypted = true, int activityTimeout = 120000, int pongTimeout = 30000, int maxReconnectionAttempts = 6, int maxReconnectGapInSeconds = 30, bool enableLogging = true, bool autoConnect = true, String? nameSpace}) → LaravelEcho<PusherClient, PusherChannel> -
Init Echo with Pusher client
override
-
socket(
StorageDatabase storageDatabase, String host, List< LaravelEchoMigration> migrations, {Map<String, String> ? authHeaders, String? nameSpace, bool autoConnect = true, Map moreOptions = const {}}) → LaravelEcho<Socket, SocketIoChannel> -
Init Echo with Socket client
override