Members
attempts :number
Stores the number of socket reconnect attempts
config :Object
Config needed for create a socket and establishing a socket connection with the Signaling Server
messageBuilder :SignalingMessageBuilder
Handler for outbound messages via the socket
messageHandler :SignalingMessageHandler
Handler for incoming messages on the socket
socket :WebSocket
Stores the WebSocket object
timestamp :number
Current timestamp
Methods
answer(…args)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
<repeatable> |
createSocket(roomKey) → {Promise}
Method that creates a socket - Returns the same instance of socket if already created.
Parameters:
Name | Type | Description |
---|---|---|
roomKey |
SkylinkRoom.id |
Fires:
- event:socketError
enterRoom(…args)
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
args |
<repeatable> |
getPeerList(showAll)
Parameters:
Name | Type | Description |
---|---|---|
showAll |
boolean |
setUserData(roomState)
Parameters:
Name | Type | Description |
---|---|---|
roomState |
SkylinkState |