Discuss this help topic in SecureBlackbox Forum

TElHTTPSClient.OnWebSocketConnectionEstablished

TElHTTPSClient     See also     


Filter: C#  VB.NET  Pascal  C++  PHP  Java  


This event is fired when a WebSocket connection is established.

Declaration

[C#]
    event TSBHTTPWebSocketConnectionEstablishedEvent OnWebSocketConnectionEstablished;
    delegate void TSBHTTPWebSocketConnectionEstablishedEvent(Object Sender, TElWebSocketClient WSClient);

[VB.NET]
    Event OnWebSocketConnectionEstablished As TSBHTTPWebSocketConnectionEstablishedEvent
    Delegate Sub TSBHTTPWebSocketConnectionEstablishedEvent(ByVal Sender As Object, ByVal WSClient As TElWebSocketClient)

[Pascal]
    property OnWebSocketConnectionEstablished : TSBHTTPWebSocketConnectionEstablishedEvent;
    TSBHTTPWebSocketConnectionEstablishedEvent = procedure(Sender : TObject; WSClient : TElWebSocketClient) of object;

[C++]
    void get_OnWebSocketConnectionEstablished(SBHTTPSClient_TSBHTTPWebSocketConnectionEstablishedEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnWebSocketConnectionEstablished(SBHTTPSClient_TSBHTTPWebSocketConnectionEstablishedEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *SBHTTPSClient_TSBHTTPWebSocketConnectionEstablishedEvent)(void * _ObjectData, TObjectHandle Sender, TElWebSocketClientHandle WSClient);

[PHP]
    TSBHTTPWebSocketConnectionEstablishedEvent|callable|NULL get_OnWebSocketConnectionEstablished()
    void set_OnWebSocketConnectionEstablished(TSBHTTPWebSocketConnectionEstablishedEvent|callable|NULL $Value)
    callable TSBHTTPWebSocketConnectionEstablishedEvent(TObject $Sender, TElWebSocketServer $WSServer)

[Java]
    TSBHTTPWebSocketConnectionEstablishedEvent getOnWebSocketConnectionEstablished();
    void setOnWebSocketConnectionEstablished(TSBHTTPWebSocketConnectionEstablishedEvent Value);
    TSBHTTPWebSocketConnectionEstablishedEvent.Callback OnWebSocketConnectionEstablished = new TSBHTTPWebSocketConnectionEstablishedEvent.Callback() {
        public void TSBHTTPWebSocketConnectionEstablishedEventCallback(TObject Sender, TElWebSocketClient WSServer) {
            //...
        }
    }

Parameters

  • WSClient - the client that is handling the WS communication.
  • WSServer -

Description

This event is fired by TElHTTPSClient when a WebSocket connection is established.

See also:     OnBeforeWebSocketClientUsed     StartWS    

Discuss this help topic in SecureBlackbox Forum