Discuss this help topic in SecureBlackbox Forum


TElWebSocketBase     See also     

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

Gracefully closes the WebSocket connection.


    void Close(bool Silent);
    void Close(bool Silent, int CloseDescription);

    Sub Close(ByVal Silent As Boolean)
    Sub Close(ByVal Silent As Boolean, ByVal CloseDescription As Integer)

    procedure Close(Silent : boolean);
    procedure Close(Silent : boolean; CloseDescription : integer);

    void Close(bool Silent);
    void Close(bool Silent, int32_t CloseDescription);

    void Close(bool $Silent)
    void Close(bool $Silent, integer $CloseDescription)


  • Silent - specifies whether the closure notification should be sent to the peer.
  • CloseDescription - specifies the close reason or a status code, as defined in RFC 6455.

WebSocket status codes:


    Call this method to close the WebSocket connection. If Silent parameter is False, a Close frame will be sent to another endpoint of the connection.

See also:     Active     OnCloseConnection    

Discuss this help topic in SecureBlackbox Forum