createWebSocket
createWebSocket(url: string
, protocols: string
| string[]
):
Creates a new WebSocket object. You can attach media streams later via the WebSocket.sendMediaTo or VoxEngine.sendMediaBetween methods.
Parameters
url:
string
URL to which to connect (wss:// + domain + path).
protocols:
string
Either a single protocol string or an array of protocol strings. The default value is chat.
Returns
type: