Preparing search index...

    Base class for network servers that accept incoming socket connections.

    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 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