Table of Contents

Delegate WebSocketServer.MessageReceivedEventhandler

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

Describes the method that will handle the event that's fired when a message that has been subscribed to has been received.

public delegate void WebSocketServer.MessageReceivedEventhandler(object sender, MessageReceivedEventArgs e)

Parameters

sender object

The proximity device that received the message.

e MessageReceivedEventArgs

The message and related data that were passed to the event handler.

Extension Methods

Constructors

MessageReceivedEventhandler(object, IntPtr)

public MessageReceivedEventhandler(object @object, IntPtr method)

Parameters

object object
method IntPtr

Methods

BeginInvoke(object, MessageReceivedEventArgs, AsyncCallback, object)

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

Parameters

sender object
e MessageReceivedEventArgs
callback AsyncCallback
object object

Returns

IAsyncResult

EndInvoke(IAsyncResult)

public virtual void EndInvoke(IAsyncResult result)

Parameters

result IAsyncResult

Invoke(object, MessageReceivedEventArgs)

public virtual void Invoke(object sender, MessageReceivedEventArgs e)

Parameters

sender object
e MessageReceivedEventArgs