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
objectThe proximity device that received the message.
e
MessageReceivedEventArgsThe message and related data that were passed to the event handler.
- Extension Methods
Constructors
MessageReceivedEventhandler(object, IntPtr)
public MessageReceivedEventhandler(object @object, IntPtr method)
Parameters
Methods
BeginInvoke(object, MessageReceivedEventArgs, AsyncCallback, object)
public virtual IAsyncResult BeginInvoke(object sender, MessageReceivedEventArgs e, AsyncCallback callback, object @object)
Parameters
sender
objecte
MessageReceivedEventArgscallback
AsyncCallbackobject
object
Returns
EndInvoke(IAsyncResult)
public virtual void EndInvoke(IAsyncResult result)
Parameters
result
IAsyncResult
Invoke(object, MessageReceivedEventArgs)
public virtual void Invoke(object sender, MessageReceivedEventArgs e)
Parameters
sender
objecte
MessageReceivedEventArgs