Class ZapServer

A server that receives data from client.

Hierarchy

  • ZapServer

Constructors

Properties

DEFAULT_PORT: number = 65500
port: number = ...
socket: Socket

Methods

  • Start listening the transmitted data from clients on the given port.

    Parameters

    • port: number = ...

      A port number for receiving data (default: 65500).

    Returns void

  • A callback function called whenever geological point is received.

    Parameters

    Returns void

  • A callback function called whenever gravity data is received.

    Parameters

    Returns void

  • A callback function called whenever gyroscope data is received.

    Parameters

    Returns void

  • A callback function called whenever illuminance data is received.

    Parameters

    Returns void

  • A callback function called whenever text data is received.

    Parameters

    Returns void

  • A callback function called whenever UI event data is received.

    Parameters

    Returns void

Generated using TypeDoc