System.Net.WebSockets
10 wrapped types. Load them with using { "System.Net.WebSockets" }. Click a class to open it.
ClientWebSocket class sealed · extends WebSocket
System.Net.WebSockets.ClientWebSocket · assembly System.Net.WebSockets.Client
Implements: IDisposable
Constructors
new ClientWebSocket() |
Ring: new ClientWebSocket(args) uses one constructor; the others are chosen by the parameter names: new ClientWebSocket().@New([ :param = value ]) or dnNew("ClientWebSocket",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Options | ClientWebSocketOptions | read | o.Options |
CloseStatus | WebSocketCloseStatus? | read | o.getCloseStatus() |
CloseStatusDescription | string | read | o.getCloseStatusDescription() |
SubProtocol | string | read | o.getSubProtocol() |
State | WebSocketState | read | o.getState() |
HttpStatusCode | HttpStatusCode | read | o.HttpStatusCode |
HttpResponseHeaders | IReadOnlyDictionary<string, IEnumerable<string>> | read, write | o.HttpResponseHeaders o.HttpResponseHeaders = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Abort | callMethod("Abort",[]) | void Abort() |
CloseAsync | callMethod("CloseAsync",[p1,p2,p3]) | Task CloseAsync(WebSocketCloseStatus closeStatus, string statusDescription, CancellationToken cancellationToken) |
CloseOutputAsync | callMethod("CloseOutputAsync",[p1,p2,p3]) | Task CloseOutputAsync(WebSocketCloseStatus closeStatus, string statusDescription, CancellationToken cancellationToken) |
ConnectAsync | ConnectAsync([ :uri = …, :cancellationToken = … ])ConnectAsync([ :uri = …, :invoker = …, :cancellationToken = … ]) | Task ConnectAsync(Uri uri, CancellationToken cancellationToken)Task ConnectAsync(Uri uri, HttpMessageInvoker invoker, CancellationToken cancellationToken) |
Dispose | callMethod("Dispose",[]) | void Dispose() |
ReceiveAsync | callMethod("ReceiveAsync",[p1,p2]) | Task<WebSocketReceiveResult> ReceiveAsync(ArraySegment<byte> buffer, CancellationToken cancellationToken)ValueTask<ValueWebSocketReceiveResult> ReceiveAsync(Memory<byte> buffer, CancellationToken cancellationToken) |
SendAsync | SendAsync([ :buffer = …, :messageType = …, :endOfMessage = …, :cancellationToken = … ])SendAsync([ :buffer = …, :messageType = …, :messageFlags = …, :cancellationToken = … ]) | Task SendAsync(ArraySegment<byte> buffer, WebSocketMessageType messageType, bool endOfMessage, CancellationToken cancellationToken)ValueTask SendAsync(ReadOnlyMemory<byte> buffer, WebSocketMessageType messageType, bool endOfMessage, CancellationToken cancellationToken)ValueTask SendAsync(ReadOnlyMemory<byte> buffer, WebSocketMessageType messageType, WebSocketMessageFlags messageFlags, CancellationToken cancellationToken) |
Members of the base class are inherited.
ClientWebSocketOptions class sealed
System.Net.WebSockets.ClientWebSocketOptions · assembly System.Net.WebSockets.Client
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
HttpVersion | Version | read, write | o.HttpVersion o.HttpVersion = v |
HttpVersionPolicy | HttpVersionPolicy | read, write | o.HttpVersionPolicy o.HttpVersionPolicy = v |
UseDefaultCredentials | bool | read, write | o.UseDefaultCredentials o.UseDefaultCredentials = v |
Credentials | ICredentials | read, write | o.Credentials o.Credentials = v |
Proxy | IWebProxy | read, write | o.Proxy o.Proxy = v |
ClientCertificates | X509CertificateCollection | read, write | o.ClientCertificates o.ClientCertificates = v |
RemoteCertificateValidationCallback | RemoteCertificateValidationCallback | read, write | o.RemoteCertificateValidationCallback o.RemoteCertificateValidationCallback = v |
Cookies | CookieContainer | read, write | o.Cookies o.Cookies = v |
KeepAliveInterval | TimeSpan | read, write | o.KeepAliveInterval o.KeepAliveInterval = v |
KeepAliveTimeout | TimeSpan | read, write | o.KeepAliveTimeout o.KeepAliveTimeout = v |
DangerousDeflateOptions | WebSocketDeflateOptions | read, write | o.DangerousDeflateOptions o.DangerousDeflateOptions = v |
CollectHttpResponseDetails | bool | read, write | o.CollectHttpResponseDetails o.CollectHttpResponseDetails = v |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
AddSubProtocol | callMethod("AddSubProtocol",[p1]) | void AddSubProtocol(string subProtocol) |
SetBuffer | SetBuffer([ :receiveBufferSize = …, :sendBufferSize = … ])SetBuffer([ :receiveBufferSize = …, :sendBufferSize = …, :buffer = … ]) | void SetBuffer(int receiveBufferSize, int sendBufferSize)void SetBuffer(int receiveBufferSize, int sendBufferSize, ArraySegment<byte> buffer) |
SetRequestHeader | callMethod("SetRequestHeader",[p1,p2]) | void SetRequestHeader(string headerName, string headerValue) |
HttpListenerWebSocketContext class · extends WebSocketContext
System.Net.WebSockets.HttpListenerWebSocketContext · assembly System.Net.HttpListener
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
RequestUri | Uri | read | o.getRequestUri() |
Headers | NameValueCollection | read | o.getHeaders() |
Origin | string | read | o.getOrigin() |
SecWebSocketProtocols | IEnumerable<string> | read | o.getSecWebSocketProtocols() |
SecWebSocketVersion | string | read | o.getSecWebSocketVersion() |
SecWebSocketKey | string | read | o.getSecWebSocketKey() |
CookieCollection | CookieCollection | read | o.getCookieCollection() |
User | IPrincipal | read | o.getUser() |
IsAuthenticated | bool | read | o.getIsAuthenticated() |
IsLocal | bool | read | o.getIsLocal() |
IsSecureConnection | bool | read | o.getIsSecureConnection() |
WebSocket | WebSocket | read | o.getWebSocket() |
Members of the base class are inherited.
ValueWebSocketReceiveResult struct
System.Net.WebSockets.ValueWebSocketReceiveResult · assembly System.Net.WebSockets
Constructors
new ValueWebSocketReceiveResult(int count, WebSocketMessageType messageType, bool endOfMessage) |
Ring: new ValueWebSocketReceiveResult(args) uses one constructor; the others are chosen by the parameter names: new ValueWebSocketReceiveResult().@New([ :param = value ]) or dnNew("ValueWebSocketReceiveResult",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Count | int | read | o.Count |
EndOfMessage | bool | read | o.EndOfMessage |
MessageType | WebSocketMessageType | read | o.MessageType |
WebSocket class abstract
System.Net.WebSockets.WebSocket · assembly System.Net.WebSockets
Implements: IDisposable
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
CloseStatus | WebSocketCloseStatus? | read | o.CloseStatus |
CloseStatusDescription | string | read | o.CloseStatusDescription |
SubProtocol | string | read | o.SubProtocol |
State | WebSocketState | read | o.State |
DefaultKeepAliveInterval | TimeSpan | read · static | o.DefaultKeepAliveInterval |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
Abort | callMethod("Abort",[]) | void Abort() |
CloseAsync | callMethod("CloseAsync",[p1,p2,p3]) | Task CloseAsync(WebSocketCloseStatus closeStatus, string statusDescription, CancellationToken cancellationToken) |
CloseOutputAsync | callMethod("CloseOutputAsync",[p1,p2,p3]) | Task CloseOutputAsync(WebSocketCloseStatus closeStatus, string statusDescription, CancellationToken cancellationToken) |
CreateClientBuffer | CreateClientBuffer(p1,p2) | static ArraySegment<byte> CreateClientBuffer(int receiveBufferSize, int sendBufferSize) |
CreateClientWebSocket | CreateClientWebSocket(p1,p2,p3,p4,p5,p6,p7) | static WebSocket CreateClientWebSocket(Stream innerStream, string subProtocol, int receiveBufferSize, int sendBufferSize, TimeSpan keepAliveInterval, bool useZeroMaskingKey, ArraySegment<byte> internalBuffer) |
CreateFromStream | CreateFromStream([ :stream = …, :options = … ])CreateFromStream([ :stream = …, :isServer = …, :subProtocol = …, :keepAliveInterval = … ]) | static WebSocket CreateFromStream(Stream stream, bool isServer, string subProtocol, TimeSpan keepAliveInterval)static WebSocket CreateFromStream(Stream stream, WebSocketCreationOptions options) |
CreateServerBuffer | CreateServerBuffer(p1) | static ArraySegment<byte> CreateServerBuffer(int receiveBufferSize) |
Dispose | callMethod("Dispose",[]) | void Dispose() |
IsApplicationTargeting45 | callMethod("IsApplicationTargeting45",[]) | static bool IsApplicationTargeting45() |
ReceiveAsync | callMethod("ReceiveAsync",[p1,p2]) | Task<WebSocketReceiveResult> ReceiveAsync(ArraySegment<byte> buffer, CancellationToken cancellationToken)ValueTask<ValueWebSocketReceiveResult> ReceiveAsync(Memory<byte> buffer, CancellationToken cancellationToken) |
RegisterPrefixes | callMethod("RegisterPrefixes",[]) | static void RegisterPrefixes() |
SendAsync | SendAsync([ :buffer = …, :messageType = …, :endOfMessage = …, :cancellationToken = … ])SendAsync([ :buffer = …, :messageType = …, :messageFlags = …, :cancellationToken = … ]) | Task SendAsync(ArraySegment<byte> buffer, WebSocketMessageType messageType, bool endOfMessage, CancellationToken cancellationToken)ValueTask SendAsync(ReadOnlyMemory<byte> buffer, WebSocketMessageType messageType, bool endOfMessage, CancellationToken cancellationToken)ValueTask SendAsync(ReadOnlyMemory<byte> buffer, WebSocketMessageType messageType, WebSocketMessageFlags messageFlags, CancellationToken cancellationToken = …) |
WebSocketContext class abstract
System.Net.WebSockets.WebSocketContext · assembly System.Net.WebSockets
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
RequestUri | Uri | read | o.RequestUri |
Headers | NameValueCollection | read | o.Headers |
Origin | string | read | o.Origin |
SecWebSocketProtocols | IEnumerable<string> | read | o.SecWebSocketProtocols |
SecWebSocketVersion | string | read | o.SecWebSocketVersion |
SecWebSocketKey | string | read | o.SecWebSocketKey |
CookieCollection | CookieCollection | read | o.CookieCollection |
User | IPrincipal | read | o.User |
IsAuthenticated | bool | read | o.IsAuthenticated |
IsLocal | bool | read | o.IsLocal |
IsSecureConnection | bool | read | o.IsSecureConnection |
WebSocket | WebSocket | read | o.WebSocket |
WebSocketCreationOptions class sealed
System.Net.WebSockets.WebSocketCreationOptions · assembly System.Net.WebSockets
Constructors
new WebSocketCreationOptions() |
Ring: new WebSocketCreationOptions(args) uses one constructor; the others are chosen by the parameter names: new WebSocketCreationOptions().@New([ :param = value ]) or dnNew("WebSocketCreationOptions",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
IsServer | bool | read, write | o.IsServer o.IsServer = v |
SubProtocol | string | read, write | o.SubProtocol o.SubProtocol = v |
KeepAliveInterval | TimeSpan | read, write | o.KeepAliveInterval o.KeepAliveInterval = v |
KeepAliveTimeout | TimeSpan | read, write | o.KeepAliveTimeout o.KeepAliveTimeout = v |
DangerousDeflateOptions | WebSocketDeflateOptions | read, write | o.DangerousDeflateOptions o.DangerousDeflateOptions = v |
WebSocketDeflateOptions class sealed
System.Net.WebSockets.WebSocketDeflateOptions · assembly System.Net.WebSockets
Constructors
new WebSocketDeflateOptions() |
Ring: new WebSocketDeflateOptions(args) uses one constructor; the others are chosen by the parameter names: new WebSocketDeflateOptions().@New([ :param = value ]) or dnNew("WebSocketDeflateOptions",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ClientMaxWindowBits | int | read, write | o.ClientMaxWindowBits o.ClientMaxWindowBits = v |
ClientContextTakeover | bool | read, write | o.ClientContextTakeover o.ClientContextTakeover = v |
ServerMaxWindowBits | int | read, write | o.ServerMaxWindowBits o.ServerMaxWindowBits = v |
ServerContextTakeover | bool | read, write | o.ServerContextTakeover o.ServerContextTakeover = v |
WebSocketException class sealed · extends Win32Exception
System.Net.WebSockets.WebSocketException · assembly System.Net.WebSockets
Implements: ISerializable
Constructors
new WebSocketException() |
new WebSocketException(WebSocketError error) |
new WebSocketException(WebSocketError error, string message) |
new WebSocketException(WebSocketError error, Exception innerException) |
new WebSocketException(WebSocketError error, string message, Exception innerException) |
new WebSocketException(int nativeError) |
new WebSocketException(int nativeError, string message) |
new WebSocketException(int nativeError, Exception innerException) |
new WebSocketException(WebSocketError error, int nativeError) |
new WebSocketException(WebSocketError error, int nativeError, string message) |
new WebSocketException(WebSocketError error, int nativeError, Exception innerException) |
new WebSocketException(WebSocketError error, int nativeError, string message, Exception innerException) |
new WebSocketException(string message) |
new WebSocketException(string message, Exception innerException) |
Ring: new WebSocketException(args) uses one constructor; the others are chosen by the parameter names: new WebSocketException().@New([ :param = value ]) or dnNew("WebSocketException",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
ErrorCode | int | read | o.getErrorCode() |
WebSocketErrorCode | WebSocketError | read | o.WebSocketErrorCode |
Methods
| Method | Ring call | .NET overloads |
|---|---|---|
GetObjectData | GetObjectData(p1,p2) | void GetObjectData(SerializationInfo info, StreamingContext context) |
Members of the base class are inherited.
WebSocketReceiveResult class
System.Net.WebSockets.WebSocketReceiveResult · assembly System.Net.WebSockets
Constructors
new WebSocketReceiveResult(int count, WebSocketMessageType messageType, bool endOfMessage) |
new WebSocketReceiveResult(int count, WebSocketMessageType messageType, bool endOfMessage, WebSocketCloseStatus? closeStatus, string closeStatusDescription) |
Ring: new WebSocketReceiveResult(args) uses one constructor; the others are chosen by the parameter names: new WebSocketReceiveResult().@New([ :param = value ]) or dnNew("WebSocketReceiveResult",[ :param = value ]).
Properties and fields
| Name | Type | Access | In Ring |
|---|---|---|---|
Count | int | read | o.Count |
EndOfMessage | bool | read | o.EndOfMessage |
MessageType | WebSocketMessageType | read | o.MessageType |
CloseStatus | WebSocketCloseStatus? | read | o.CloseStatus |
CloseStatusDescription | string | read | o.CloseStatusDescription |