The WebSocketClient type exposes the following members.

Constructors

  NameDescription
Public methodSupported by the .NET Compact FrameworkWebSocketClient
Creates a new instance of WebSocketClient.

Methods

  NameDescription
Public methodSupported by the .NET Compact FrameworkAbort
Aborts the WebSocket and all active operations.
Public methodSupported by the .NET Compact FrameworkClose()()()()
Closes the sending part of the WebSocket (unless already closed) and waits for the receiving part to be closed.
Public methodSupported by the .NET Compact FrameworkClose(WebSocketCloseStatus, String)
Closes the sending part of the WebSocket (unless already closed) and waits for the receiving part to be closed.
Public methodSupported by the .NET Compact FrameworkCloseOutput
Closes the sending part of the WebSocket, making it possible to still receive messages from the server.
Public methodSupported by the .NET Compact FrameworkConnect(String)
Establish a WebSocket connection to the specified URL.
Public methodSupported by the .NET Compact FrameworkConnect(Uri)
Establish a WebSocket connection to the specified URL.
Public methodSupported by the .NET Compact FrameworkDispose
Disposes the WebSocketClient object and the underlying connection.
Public methodSupported by the .NET Compact FrameworkEquals
Determines whether the specified Object is equal to the current Object.
(Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkFinalize
Allows an Object to attempt to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetHashCode
Serves as a hash function for a particular type. GetHashCode()()()() is suitable for use in hashing algorithms and data structures like a hash table.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkGetType
Gets the Type of the current instance.
(Inherited from Object.)
Protected methodSupported by the .NET Compact FrameworkMemberwiseClone
Creates a shallow copy of the current Object.
(Inherited from Object.)
Public methodSupported by the .NET Compact FrameworkPoll
Wait until a message fragment is received or the specified timout has elapsed.
Public methodSupported by the .NET Compact FrameworkReceive(ArraySegment<(Of <<'(Byte>)>>))
Receives a message fragment from the server.
Public methodSupported by the .NET Compact FrameworkReceive<(Of <<'(T>)>>)()()()()
Receives a message of the specified type from the server. Only String, byte array and Object types are currently supported.
Public methodSupported by the .NET Compact FrameworkSend(array<Byte>[]()[][])
Sends the specified binary message to the server.
Public methodSupported by the .NET Compact FrameworkSend(String)
Sends the specified text message to the server.
Public methodSupported by the .NET Compact FrameworkSend(ArraySegment<(Of <<'(Byte>)>>), WebSocketMessageType, Boolean)
Sends the specified message fragment to the server.
Public methodSupported by the .NET Compact FrameworkSetSocketFactory
Sets the socket factory to be used to create communication sockets.
Public methodSupported by the .NET Compact FrameworkToString
Returns a String that represents the current Object.
(Inherited from Object.)

Properties

  NameDescription
Public propertySupported by the .NET Compact FrameworkCloseStatus
Gets the close status (only available once the WebSocket has been closed).
Public propertySupported by the .NET Compact FrameworkCloseStatusDescription
Gets the close status description (only available once the WebSocket has been closed).
Protected propertySupported by the .NET Compact FrameworkInstanceId
Gets instance ID (intended for logging purposes).
(Inherited from NetworkSession.)
Public propertySupported by the .NET Compact FrameworkIsAuthenticated (Overrides NetworkSession..::..IsAuthenticated.)
Public propertySupported by the .NET Compact FrameworkIsConnected (Overrides NetworkSession..::..IsConnected.)
Public propertySupported by the .NET Compact FrameworkLogWriter
Gets or sets the LogWriter used by this object.
(Inherited from NetworkSession.)
Public propertySupported by the .NET Compact FrameworkOptions
WebSocket options.
Public propertySupported by the .NET Compact FrameworkProxy
Gets or sets the network proxy to use to access a remote server.
Public propertySupported by the .NET Compact FrameworkServerName
Gets the server name, if available.
(Inherited from NetworkSession.)
Public propertySupported by the .NET Compact FrameworkServerPort
Gets the server port, if available.
(Inherited from NetworkSession.)
Public propertySupported by the .NET Compact FrameworkSettings
Gets an WebSocketClientSettings object.
Public propertySupported by the .NET Compact FrameworkState
Gets the last known state of the WebSocket object.
Public propertySupported by the .NET Compact FrameworkSubProtocol
Gets the sub-protocol selected by the server (only available once the WebSocket has been connected).
Public propertySupported by the .NET Compact FrameworkUserName
Gets the authenticated user name, if available.
(Inherited from NetworkSession.)

Events

  NameDescription
Public eventSupported by the .NET Compact FrameworkValidatingCertificate
Occurs when a server certificate needs to be validated.

See Also