eXept Software AG Logo

Smalltalk/X Webserver

Documentation of class 'WebSocketStream::ConnectionClosedError':

Home

Documentation
www.exept.de
Everywhere
for:
[back]

Class: ConnectionClosedError (private in WebSocketStream

This class is only visible from within WebSocketStream.

Inheritance:

   Object
   |
   +--GenericException
      |
      +--Exception
         |
         +--Error
            |
            +--WebSocketStream::ConnectionClosedError

Package:
stx:goodies/communication
Category:
Net-Communication-Websocket
Owner:
WebSocketStream

Description:


a unique error, which is raised when you try to send data with an already closed web socked stream

to avoid this error ask #isConnectionClosed before or set the following callbacks to the WebSocket stream:
    #closedByPeerCallback:
    #closedByErrorCallback:

and dont send any more data after getting one of those callbacks...



ST/X 7.7.0.0; WebServer 1.702 at 20f6060372b9.unknown:8081; Fri, 18 Oct 2024 07:04:29 GMT