Discuss this help topic in SecureBlackbox Forum

TElHTTPSServer.OnBeforeWebSocketServerUsed

TElHTTPSServer     See also     


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


This event is fired before a WebSocket server is used.

Declaration

[C#]
    event TSBHTTPBeforeWebSocketServerUsedEvent OnBeforeWebSocketServerUsed;
    delegate void TSBHTTPBeforeWebSocketServerUsedEvent(Object Sender, TElWebSocketServer WSServer);

[VB.NET]
    Event OnBeforeWebSocketServerUsed As TSBHTTPBeforeWebSocketServerUsedEvent
    Delegate Sub TSBHTTPBeforeWebSocketServerUsedEvent(ByVal Sender As Object, ByVal WSServer As TElWebSocketServer)

[Pascal]
    property OnBeforeWebSocketServerUsed : TSBHTTPBeforeWebSocketServerUsedEvent;
    TSBHTTPBeforeWebSocketServerUsedEvent = procedure(Sender : TObject; WSServer : TElWebSocketServer) of object;

[C++]
    void get_OnBeforeWebSocketServerUsed(TSBHTTPBeforeWebSocketServerUsedEvent &pMethodOutResult, void * &pDataOutResult);
    void set_OnBeforeWebSocketServerUsed(TSBHTTPBeforeWebSocketServerUsedEvent pMethodValue, void * pDataValue);
    typedef void (SB_CALLBACK *TSBHTTPBeforeWebSocketServerUsedEvent)(void * _ObjectData, TObjectHandle Sender, TElWebSocketServerHandle WSServer);

[PHP]
    TSBHTTPBeforeWebSocketServerUsedEvent|callable|NULL get_OnBeforeWebSocketServerUsed()
    void set_OnBeforeWebSocketServerUsed(TSBHTTPBeforeWebSocketServerUsedEvent|callable|NULL $Value)
    callable TSBHTTPBeforeWebSocketServerUsedEvent(TObject $Sender, TElWebSocketServer $WSServer)

[Java]
    TSBHTTPBeforeWebSocketServerUsedEvent getOnBeforeWebSocketServerUsed();
    void setOnBeforeWebSocketServerUsed(TSBHTTPBeforeWebSocketServerUsedEvent Value);
    TSBHTTPBeforeWebSocketServerUsedEvent.Callback OnBeforeWebSocketServerUsed = new TSBHTTPBeforeWebSocketServerUsedEvent.Callback() {
        public void TSBHTTPBeforeWebSocketServerUsedEventCallback(TObject Sender, TElWebSocketServer WSServer) {
            //...
        }
    }

Parameters

  • WSServer - the server that will be used to handle the WS connection.

Description

This event is fired by TElHTTPSServer when it has received a request to establish a Web Socket session.

See also:     OnWebSocketConnectionEstablished    

Discuss this help topic in SecureBlackbox Forum