NativeWebSocketWrapper
(
url
, headers
)
|
Constructor that takes in url and headers and adds all callbacks.
Signature
Meta.Voice.Net.WebSockets.NativeWebSocketWrapper.NativeWebSocketWrapper(string url, Dictionary< string, string > headers) Parameters url: stringheaders: Dictionary< string, string > |
State
: WitWebSocketConnectionState
[Get] |
The current state of the web socket client
Signature
WitWebSocketConnectionState Meta.Voice.Net.WebSockets.NativeWebSocketWrapper.State |
OnClose
: Action< WebSocketCloseCode > |
Callback when message is received from web socket server
Signature
Action<WebSocketCloseCode> Meta.Voice.Net.WebSockets.NativeWebSocketWrapper.OnClose |
OnError
: Action< string > |
Callback when an error is received from web socket server
Signature
Action<string> Meta.Voice.Net.WebSockets.NativeWebSocketWrapper.OnError |
OnMessage
: Action< byte[], int, int > |
Callback when message is received from web socket server
Signature
Action<byte[], int, int> Meta.Voice.Net.WebSockets.NativeWebSocketWrapper.OnMessage |
OnOpen
: Action |
Callback when web socket is opened
Signature
Action Meta.Voice.Net.WebSockets.NativeWebSocketWrapper.OnOpen |
Close
()
|
Method to close web socket communication with normal close code
Signature
async Task Meta.Voice.Net.WebSockets.NativeWebSocketWrapper.Close() Returns async Task |
Connect
()
|
Method to begin web socket communication
Signature
async Task Meta.Voice.Net.WebSockets.NativeWebSocketWrapper.Connect() Returns async Task |
Send
(
data
)
|
Method to send byte data to a web socket
Signature
async Task Meta.Voice.Net.WebSockets.NativeWebSocketWrapper.Send(byte[] data) Parameters data: byte []Returns async Task |