Connected Event
Fired when a WebSocket is successfully opened.
Syntax
public event OnConnectedHandler OnConnected; public delegate void OnConnectedHandler(object sender, WebsocketserverConnectedEventArgs e); public class WebsocketserverConnectedEventArgs : EventArgs { public string ConnectionId { get; } }
Public Event OnConnected As OnConnectedHandler Public Delegate Sub OnConnectedHandler(sender As Object, e As WebsocketserverConnectedEventArgs) Public Class WebsocketserverConnectedEventArgs Inherits EventArgs Public ReadOnly Property ConnectionId As String End Class
Remarks
The Connected event is fired when a WebSocket is successfully opened on a connection.
ConnectionId identifies the connection.