Interface IVBANServerOptions

interface IVBANServerOptions {
    application?: {
        GPSPosition?: string;
        PreferredRate?: number;
        applicationName?: string;
        applicationType?: EServicePINGApplicationType;
        bitFeatureEx?: number;
        color?: {
            blue: number;
            green: number;
            red: number;
        };
        deviceName?: string;
        features?: EServicePINGFeatures[];
        langCode?: string;
        manufacturerName?: string;
        maxRate?: number;
        minRate?: number;
        nVersion?: number;
        userComment?: string;
        userName?: string;
        userPosition?: string;
    };
    autoReplyToPing?: boolean;
    beforeProcessPacket?: ((msg, sender) => boolean);
}

Properties

application?: {
    GPSPosition?: string;
    PreferredRate?: number;
    applicationName?: string;
    applicationType?: EServicePINGApplicationType;
    bitFeatureEx?: number;
    color?: {
        blue: number;
        green: number;
        red: number;
    };
    deviceName?: string;
    features?: EServicePINGFeatures[];
    langCode?: string;
    manufacturerName?: string;
    maxRate?: number;
    minRate?: number;
    nVersion?: number;
    userComment?: string;
    userName?: string;
    userPosition?: string;
}

Type declaration

  • Optional GPSPosition?: string
  • Optional PreferredRate?: number
  • Optional applicationName?: string
  • Optional applicationType?: EServicePINGApplicationType
  • Optional bitFeatureEx?: number
  • Optional color?: {
        blue: number;
        green: number;
        red: number;
    }
    • blue: number
    • green: number
    • red: number
  • Optional deviceName?: string
  • Optional features?: EServicePINGFeatures[]
  • Optional langCode?: string
  • Optional manufacturerName?: string
  • Optional maxRate?: number
  • Optional minRate?: number
  • Optional nVersion?: number
  • Optional userComment?: string
  • Optional userName?: string
  • Optional userPosition?: string
autoReplyToPing?: boolean

will auto send a reply when another app will send a ping

beforeProcessPacket?: ((msg, sender) => boolean)

Return false to stop processing the packet

Type declaration

    • (msg, sender): boolean
    • Parameters

      • msg: Buffer
      • sender: RemoteInfo

      Returns boolean