Tanoda
|
WebSocket class interface shared by both native and JSLIB implementation. More...
Public Member Functions | |
void | Connect () |
Open WebSocket connection More... | |
void | Close (WebSocketCloseCode code=WebSocketCloseCode.Normal, string reason=null) |
Close WebSocket connection with optional status code and reason. More... | |
void | Send (byte[] data) |
Send binary data over the socket. More... | |
WebSocketState | GetState () |
Return WebSocket connection state. More... | |
Events | |
WebSocketOpenEventHandler | OnOpen |
Occurs when the connection is opened. More... | |
WebSocketMessageEventHandler | OnMessage |
Occurs when a message is received. More... | |
WebSocketErrorEventHandler | OnError |
Occurs when an error was reported from WebSocket. More... | |
WebSocketCloseEventHandler | OnClose |
Occurs when the socked was closed. More... | |
WebSocket class interface shared by both native and JSLIB implementation.
Definition at line 75 of file WebSocket.cs.
void HybridWebSocket.IWebSocket.Close | ( | WebSocketCloseCode | code = WebSocketCloseCode.Normal , |
string | reason = null |
||
) |
Close WebSocket connection with optional status code and reason.
code | Close status code. |
reason | Reason string. |
Implemented in HybridWebSocket.WebSocket.
void HybridWebSocket.IWebSocket.Connect | ( | ) |
Open WebSocket connection
Implemented in HybridWebSocket.WebSocket.
WebSocketState HybridWebSocket.IWebSocket.GetState | ( | ) |
void HybridWebSocket.IWebSocket.Send | ( | byte[] | data | ) |
Send binary data over the socket.
data | Payload data. |
Implemented in HybridWebSocket.WebSocket.
WebSocketCloseEventHandler HybridWebSocket.IWebSocket.OnClose |
Occurs when the socked was closed.
Definition at line 119 of file WebSocket.cs.
WebSocketErrorEventHandler HybridWebSocket.IWebSocket.OnError |
Occurs when an error was reported from WebSocket.
Definition at line 114 of file WebSocket.cs.
WebSocketMessageEventHandler HybridWebSocket.IWebSocket.OnMessage |
Occurs when a message is received.
Definition at line 109 of file WebSocket.cs.
WebSocketOpenEventHandler HybridWebSocket.IWebSocket.OnOpen |
Occurs when the connection is opened.
Definition at line 104 of file WebSocket.cs.