ServerMessageWebSocket.MessageReceived Event
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
An event that indicates that a message was received on the ServerMessageWebSocket object.
// Register
event_token MessageReceived(TypedEventHandler<ServerMessageWebSocket, MessageWebSocketMessageReceivedEventArgs const&> const& handler) const;
// Revoke with event_token
void MessageReceived(event_token const* cookie) const;
// Revoke with event_revoker
ServerMessageWebSocket::MessageReceived_revoker MessageReceived(auto_revoke_t, TypedEventHandler<ServerMessageWebSocket, MessageWebSocketMessageReceivedEventArgs const&> const& handler) const;
public event TypedEventHandler<ServerMessageWebSocket,MessageWebSocketMessageReceivedEventArgs> MessageReceived;
function onMessageReceived(eventArgs) { /* Your code */ }
serverMessageWebSocket.addEventListener("messagereceived", onMessageReceived);
serverMessageWebSocket.removeEventListener("messagereceived", onMessageReceived);
- or -
serverMessageWebSocket.onmessagereceived = onMessageReceived;
Public Custom Event MessageReceived As TypedEventHandler(Of ServerMessageWebSocket, MessageWebSocketMessageReceivedEventArgs)
Event Type
Windows requirements
App capabilities |
internetClientServer
privateNetworkClientServer
|