Connected Event
Fired when a WebSocket is successfully opened.
Syntax
ANSI (Cross Platform) virtual int FireConnected(WebSocketServerConnectedEventParams *e);
typedef struct {
int ConnectionId; int reserved; } WebSocketServerConnectedEventParams; Unicode (Windows) virtual INT FireConnected(WebSocketServerConnectedEventParams *e);
typedef struct {
INT ConnectionId; INT reserved; } WebSocketServerConnectedEventParams;
- (void)onConnected:(int)connectionId;
#define EID_WEBSOCKETSERVER_CONNECTED 1 virtual INT IPWORKSWS_CALL FireConnected(INT &iConnectionId);
Remarks
The Connected event is fired when a WebSocket is successfully opened on a connection.
ConnectionId identifies the connection.