Share via


IWebSocket Interface

.NET Framework 4

Represents a web socket.

Namespace:  Microsoft.AspNet.SignalR.Hosting
Assembly:  Microsoft.AspNet.SignalR.Core (in Microsoft.AspNet.SignalR.Core.dll)

Syntax

'Declaration
Public Interface IWebSocket
'Usage
Dim instance As IWebSocket
public interface IWebSocket
public interface class IWebSocket
type IWebSocket =  interface end
public interface IWebSocket

The IWebSocket type exposes the following members.

Properties

  Name Description
Public property OnClose Invoked when the websocket gracefully closes
Public property OnError Invoked when there is an error
Public property OnMessage Invoked when data is sent over the websocket

Top

Methods

  Name Description
Public method Send Sends data over the websocket.

Top

See Also

Reference

Microsoft.AspNet.SignalR.Hosting Namespace