RingDotNetfor Ring

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

NameTypeAccessIn Ring
OptionsClientWebSocketOptionsreado.Options
CloseStatusWebSocketCloseStatus?reado.getCloseStatus()
CloseStatusDescriptionstringreado.getCloseStatusDescription()
SubProtocolstringreado.getSubProtocol()
StateWebSocketStatereado.getState()
HttpStatusCodeHttpStatusCodereado.HttpStatusCode
HttpResponseHeadersIReadOnlyDictionary<string, IEnumerable<string>>read, writeo.HttpResponseHeaders o.HttpResponseHeaders = v

Methods

MethodRing call.NET overloads
AbortcallMethod("Abort",[])void Abort()
CloseAsynccallMethod("CloseAsync",[p1,p2,p3])Task CloseAsync(WebSocketCloseStatus closeStatus, string statusDescription, CancellationToken cancellationToken)
CloseOutputAsynccallMethod("CloseOutputAsync",[p1,p2,p3])Task CloseOutputAsync(WebSocketCloseStatus closeStatus, string statusDescription, CancellationToken cancellationToken)
ConnectAsyncConnectAsync([ :uri = …, :cancellationToken = … ])
ConnectAsync([ :uri = …, :invoker = …, :cancellationToken = … ])
Task ConnectAsync(Uri uri, CancellationToken cancellationToken)
Task ConnectAsync(Uri uri, HttpMessageInvoker invoker, CancellationToken cancellationToken)
DisposecallMethod("Dispose",[])void Dispose()
ReceiveAsynccallMethod("ReceiveAsync",[p1,p2])Task<WebSocketReceiveResult> ReceiveAsync(ArraySegment<byte> buffer, CancellationToken cancellationToken)
ValueTask<ValueWebSocketReceiveResult> ReceiveAsync(Memory<byte> buffer, CancellationToken cancellationToken)
SendAsyncSendAsync([ :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

NameTypeAccessIn Ring
HttpVersionVersionread, writeo.HttpVersion o.HttpVersion = v
HttpVersionPolicyHttpVersionPolicyread, writeo.HttpVersionPolicy o.HttpVersionPolicy = v
UseDefaultCredentialsboolread, writeo.UseDefaultCredentials o.UseDefaultCredentials = v
CredentialsICredentialsread, writeo.Credentials o.Credentials = v
ProxyIWebProxyread, writeo.Proxy o.Proxy = v
ClientCertificatesX509CertificateCollectionread, writeo.ClientCertificates o.ClientCertificates = v
RemoteCertificateValidationCallbackRemoteCertificateValidationCallbackread, writeo.RemoteCertificateValidationCallback o.RemoteCertificateValidationCallback = v
CookiesCookieContainerread, writeo.Cookies o.Cookies = v
KeepAliveIntervalTimeSpanread, writeo.KeepAliveInterval o.KeepAliveInterval = v
KeepAliveTimeoutTimeSpanread, writeo.KeepAliveTimeout o.KeepAliveTimeout = v
DangerousDeflateOptionsWebSocketDeflateOptionsread, writeo.DangerousDeflateOptions o.DangerousDeflateOptions = v
CollectHttpResponseDetailsboolread, writeo.CollectHttpResponseDetails o.CollectHttpResponseDetails = v

Methods

MethodRing call.NET overloads
AddSubProtocolcallMethod("AddSubProtocol",[p1])void AddSubProtocol(string subProtocol)
SetBufferSetBuffer([ :receiveBufferSize = …, :sendBufferSize = … ])
SetBuffer([ :receiveBufferSize = …, :sendBufferSize = …, :buffer = … ])
void SetBuffer(int receiveBufferSize, int sendBufferSize)
void SetBuffer(int receiveBufferSize, int sendBufferSize, ArraySegment<byte> buffer)
SetRequestHeadercallMethod("SetRequestHeader",[p1,p2])void SetRequestHeader(string headerName, string headerValue)
HttpListenerWebSocketContext class · extends WebSocketContext

System.Net.WebSockets.HttpListenerWebSocketContext · assembly System.Net.HttpListener

Properties and fields

NameTypeAccessIn Ring
RequestUriUrireado.getRequestUri()
HeadersNameValueCollectionreado.getHeaders()
Originstringreado.getOrigin()
SecWebSocketProtocolsIEnumerable<string>reado.getSecWebSocketProtocols()
SecWebSocketVersionstringreado.getSecWebSocketVersion()
SecWebSocketKeystringreado.getSecWebSocketKey()
CookieCollectionCookieCollectionreado.getCookieCollection()
UserIPrincipalreado.getUser()
IsAuthenticatedboolreado.getIsAuthenticated()
IsLocalboolreado.getIsLocal()
IsSecureConnectionboolreado.getIsSecureConnection()
WebSocketWebSocketreado.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

NameTypeAccessIn Ring
Countintreado.Count
EndOfMessageboolreado.EndOfMessage
MessageTypeWebSocketMessageTypereado.MessageType
WebSocket class abstract

System.Net.WebSockets.WebSocket · assembly System.Net.WebSockets

Implements: IDisposable

Properties and fields

NameTypeAccessIn Ring
CloseStatusWebSocketCloseStatus?reado.CloseStatus
CloseStatusDescriptionstringreado.CloseStatusDescription
SubProtocolstringreado.SubProtocol
StateWebSocketStatereado.State
DefaultKeepAliveIntervalTimeSpanread · statico.DefaultKeepAliveInterval

Methods

MethodRing call.NET overloads
AbortcallMethod("Abort",[])void Abort()
CloseAsynccallMethod("CloseAsync",[p1,p2,p3])Task CloseAsync(WebSocketCloseStatus closeStatus, string statusDescription, CancellationToken cancellationToken)
CloseOutputAsynccallMethod("CloseOutputAsync",[p1,p2,p3])Task CloseOutputAsync(WebSocketCloseStatus closeStatus, string statusDescription, CancellationToken cancellationToken)
CreateClientBufferCreateClientBuffer(p1,p2)static ArraySegment<byte> CreateClientBuffer(int receiveBufferSize, int sendBufferSize)
CreateClientWebSocketCreateClientWebSocket(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)
CreateFromStreamCreateFromStream([ :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)
CreateServerBufferCreateServerBuffer(p1)static ArraySegment<byte> CreateServerBuffer(int receiveBufferSize)
DisposecallMethod("Dispose",[])void Dispose()
IsApplicationTargeting45callMethod("IsApplicationTargeting45",[])static bool IsApplicationTargeting45()
ReceiveAsynccallMethod("ReceiveAsync",[p1,p2])Task<WebSocketReceiveResult> ReceiveAsync(ArraySegment<byte> buffer, CancellationToken cancellationToken)
ValueTask<ValueWebSocketReceiveResult> ReceiveAsync(Memory<byte> buffer, CancellationToken cancellationToken)
RegisterPrefixescallMethod("RegisterPrefixes",[])static void RegisterPrefixes()
SendAsyncSendAsync([ :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

NameTypeAccessIn Ring
RequestUriUrireado.RequestUri
HeadersNameValueCollectionreado.Headers
Originstringreado.Origin
SecWebSocketProtocolsIEnumerable<string>reado.SecWebSocketProtocols
SecWebSocketVersionstringreado.SecWebSocketVersion
SecWebSocketKeystringreado.SecWebSocketKey
CookieCollectionCookieCollectionreado.CookieCollection
UserIPrincipalreado.User
IsAuthenticatedboolreado.IsAuthenticated
IsLocalboolreado.IsLocal
IsSecureConnectionboolreado.IsSecureConnection
WebSocketWebSocketreado.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

NameTypeAccessIn Ring
IsServerboolread, writeo.IsServer o.IsServer = v
SubProtocolstringread, writeo.SubProtocol o.SubProtocol = v
KeepAliveIntervalTimeSpanread, writeo.KeepAliveInterval o.KeepAliveInterval = v
KeepAliveTimeoutTimeSpanread, writeo.KeepAliveTimeout o.KeepAliveTimeout = v
DangerousDeflateOptionsWebSocketDeflateOptionsread, writeo.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

NameTypeAccessIn Ring
ClientMaxWindowBitsintread, writeo.ClientMaxWindowBits o.ClientMaxWindowBits = v
ClientContextTakeoverboolread, writeo.ClientContextTakeover o.ClientContextTakeover = v
ServerMaxWindowBitsintread, writeo.ServerMaxWindowBits o.ServerMaxWindowBits = v
ServerContextTakeoverboolread, writeo.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

NameTypeAccessIn Ring
ErrorCodeintreado.getErrorCode()
WebSocketErrorCodeWebSocketErrorreado.WebSocketErrorCode

Methods

MethodRing call.NET overloads
GetObjectDataGetObjectData(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

NameTypeAccessIn Ring
Countintreado.Count
EndOfMessageboolreado.EndOfMessage
MessageTypeWebSocketMessageTypereado.MessageType
CloseStatusWebSocketCloseStatus?reado.CloseStatus
CloseStatusDescriptionstringreado.CloseStatusDescription