@refinio/one.models
    Preparing search index...

    Class Listens for connections through a communication server.

    So the purpose of this class is almost the same as that of the websocket server, except that is doesn't accept connections directly, but through a comm-server.

    Index

    Constructors

    Properties

    Methods

    Constructors

    Properties

    onConnection: OEvent<(connection: default) => void> = ...

    Event is emitted after a connection between two instances has been established.

    onStateChange: OEvent<
        (
            newState: CommunicationServerListenerState,
            oldState: CommunicationServerListenerState,
            reason?: string,
        ) => void,
    > = ...

    Event is emitted when the state of the connector changes. The listener handler will be called in order to have access from outside to the errors that occur on the websocket level.

    Methods