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

NativeWebSocket Namespace

NativeWebSocket is a wrapped of System.Net.WebSockets that is compatible with WebGL and supports handling of upload and download bytes on a background thread.

Enumeration Types

Enumeration WebSocketCloseCode

NotSet
= 0
Normal
= 1000
Away
= 1001
ProtocolError
= 1002
UnsupportedData
= 1003
Undefined
= 1004
NoStatus
= 1005
Abnormal
= 1006
InvalidData
= 1007
PolicyViolation
= 1008
TooBig
= 1009
MandatoryExtension
= 1010
ServerError
= 1011
TlsHandshakeFailure
= 1015

Enumeration WebSocketState

Connecting
No description available
Open
No description available
Closing
No description available
Closed
No description available

Functions

delegate void WebSocketOpenEventHandler ( )
delegate void WebSocketMessageEventHandler
( byte [] data,
int offset,
int length )
delegate void WebSocketErrorEventHandler
( string errorMsg )
delegate void WebSocketCloseEventHandler
( WebSocketCloseCode closeCode )
Did you find this page helpful?
Thumbs up icon
Thumbs down icon