sockets/socket_manager library

Functions

connectSocket(ConnectSocketOptions options) Future<Socket>
Connects to a media socket with the specified options. Validates the API key or token and initiates a socket connection.
disconnectSocket(DisconnectSocketOptions options) Future<bool>
Disconnects the given socket instance. Returns true upon successful disconnection.
validateApiKeyToken(String value) Future<bool>
Validates the provided API key or token. Returns true if the API key or token is valid, otherwise throws an exception.

Typedefs

ConnectSocketType = Future<Socket> Function(ConnectSocketOptions options)
DisconnectSocketType = Future<bool> Function(DisconnectSocketOptions options)