Type Alias CloseProps

type CloseProps = {
    websocketCloseDelay?: number;
}
Index

Properties

websocketCloseDelay?: number

Defines after how much time the websocket is actually closed. Typically only used in test cases. By default a suitable small delay is used. The reason for having a delay is to support unmounting a UI (which closes its app session) and mounting a new UI (which opens a new app session) in short succession without having to recreate the underlying websocket.