sockeon library
A Dart and Flutter client for the Sockeon real-time framework.
Connect to a Sockeon WebSocket server, listen for events, emit events and manage rooms/namespaces with automatic reconnection.
Classes
- SockeonClient
- A Dart/Flutter client for the Sockeon framework.
- SockeonMessage
- A single Sockeon protocol message.
- SockeonReconnectOptions
- Controls automatic reconnection behaviour for a SockeonClient.
- SockeonSubscription
- Handle returned by SockeonClient.on that can be used to cancel a single event subscription without affecting other listeners for the same event.
Enums
- SockeonConnectionState
- Represents the lifecycle state of a SockeonClient connection.
Extensions
- SockeonConnectionStateX on SockeonConnectionState
- Convenience helpers for SockeonConnectionState.
Typedefs
-
SockeonEventHandler
= void Function(Map<
String, dynamic> data) - Signature for event handlers registered via SockeonClient.on.
Exceptions / Errors
- SockeonConnectionException
- Thrown when an operation requires an active connection but none exists.
- SockeonException
- Base class for all errors thrown by the Sockeon client.
- SockeonProtocolException
- Thrown when a message fails client-side protocol validation before sending.