WebSocketConnectionConnected Property
This property is used to disconnect individual connections and/or show their status.
Syntax
ANSI (Cross Platform) int GetWebSocketConnectionConnected(int iConnectionId);
int SetWebSocketConnectionConnected(int iConnectionId, int bWebSocketConnectionConnected); Unicode (Windows) BOOL GetWebSocketConnectionConnected(INT iConnectionId);
INT SetWebSocketConnectionConnected(INT iConnectionId, BOOL bWebSocketConnectionConnected);
- (BOOL)webSocketConnectionConnected:(int)connectionId; - (void)setWebSocketConnectionConnected:(int)connectionId:(BOOL)newWebSocketConnectionConnected;
#define PID_WEBSOCKETSERVER_WEBSOCKETCONNECTIONCONNECTED 5 IPWORKSWS_EXTERNAL void* IPWORKSWS_CALL IPWorksWS_WebSocketServer_Get(void *lpObj, int propid, int arridx, int *lpcbVal, int64 *lpllVal); IPWORKSWS_EXTERNAL int IPWORKSWS_CALL IPWorksWS_WebSocketServer_Set(void *lpObj, int propid, int arridx, const void *val, int cbVal); IPWORKSWS_EXTERNAL int IPWORKSWS_CALL IPWorksWS_WebSocketServer_CheckIndex(void *lpObj, int propid, int arridx);
Default Value
FALSE
Remarks
This property is used to disconnect individual connections and/or show their status.
The WebSocketConnectionConnected property may be set to false to close the connection.
WebSocketConnectionConnected also shows the status of a particular connection (connected/disconnected).
The ConnectionId parameter specifies the index of the item in the array. The size of the array is controlled by the WebSocketConnectionCount property.
This property is not available at design time.
Data Type
Boolean