Preparing search index...

    WebSocket server that listens on a local address and accepts incoming client connections from web content or other plugins.

    Hierarchy (View Summary)

    Index

    Constructors

    Properties

    address: string

    The address string the server is currently bound to.

    onConnect: signal1<BaseSocket, void>

    Signal fired when a new client socket connects to the server.

    onError: signal1<number, void>

    Signal fired when a server error occurs, passing an error code.

    port: number

    Methods

    • Closes the server and stops accepting new connections.

      Returns void

    • Returns the name of this object's type.

      Returns string

    • Returns true if the object is of the specified type.

      Parameters

      • type: string

      Returns boolean

    • Starts listening for incoming connections on the specified address; returns true if successful.

      Parameters

      Returns boolean