misc 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.
-
createDeviceClient(
{required CreateDeviceClientOptions options}) → Future< Device?> - Creates a mediasoup client device with the provided RTP capabilities.
-
disconnectSocket(
DisconnectSocketOptions options) → Future< bool> -
Disconnects the given socket instance.
Returns
trueupon successful disconnection. -
joinRoomClient(
JoinRoomClientOptions options) → Future< ResponseJoinRoom> -
Joins a room by emitting the
joinRoomorjoinConRoomevent to the server using the provided socket. -
updateRoomParametersClient(
{required UpdateRoomParametersClientOptions options}) → void - Updates the room configuration parameters based on provided options.