Table of Contents

Delegate WebSocketServer.WebSocketClosedEventhandler

Namespace
System.Net.WebSockets.Server
Assembly
System.Net.WebSockets.dll

Describes the method that will handle the event that's fired when the WebSocket is closed.

public delegate void WebSocketServer.WebSocketClosedEventhandler(object sender, WebSocketClosedEventArgs e)

Parameters

sender object

The proximity device that received the message.

e WebSocketClosedEventArgs

The closed event data that were passed to the event handler.

Extension Methods

Constructors

WebSocketClosedEventhandler(object, IntPtr)

public WebSocketClosedEventhandler(object @object, IntPtr method)

Parameters

object object
method IntPtr

Methods

BeginInvoke(object, WebSocketClosedEventArgs, AsyncCallback, object)

public virtual IAsyncResult BeginInvoke(object sender, WebSocketClosedEventArgs e, AsyncCallback callback, object @object)

Parameters

sender object
e WebSocketClosedEventArgs
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual void EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Invoke(object, WebSocketClosedEventArgs)

public virtual void Invoke(object sender, WebSocketClosedEventArgs e)

Parameters

sender object
e WebSocketClosedEventArgs