API reference
API reference
Select your platform
No SDKs available
No versions available

IWebSocket Interface

An interface for a WebSocket wrapper class

Properties

The current state of the web socket client
Signature
WitWebSocketConnectionState Meta.Voice.Net.WebSockets.IWebSocket.State

Events

OnClose : Action< WebSocketCloseCode >
Callback when message is received from web socket server
Signature
Action<WebSocketCloseCode> Meta.Voice.Net.WebSockets.IWebSocket.OnClose
OnError : Action< string >
Callback when an error is received from web socket server
Signature
Action<string> Meta.Voice.Net.WebSockets.IWebSocket.OnError
OnMessage : Action< byte[], int, int >
Callback when message is received from web socket server
Signature
Action<byte[], int, int> Meta.Voice.Net.WebSockets.IWebSocket.OnMessage
OnOpen : Action
Callback when web socket is opened
Signature
Action Meta.Voice.Net.WebSockets.IWebSocket.OnOpen

Methods

Close ()
Method to close web socket communication with normal close code
Signature
Task Meta.Voice.Net.WebSockets.IWebSocket.Close()
Returns
Task
Connect ()
Method to begin web socket communication
Signature
Task Meta.Voice.Net.WebSockets.IWebSocket.Connect()
Returns
Task
Send ( data )
Method to send byte data to a web socket
Signature
Task Meta.Voice.Net.WebSockets.IWebSocket.Send(byte[] data)
Parameters
data: byte []
Returns
Task