Class FreeSwitchSocket

Constructors

Properties

Methods

Constructors

  • Create a new client that will attempt to connect to a FreeSWITCH Event Socket.

    Parameters

    • options: { host: string; logger: Logger; maxRetryTimeout?: number; port: number }
      • host: string

        default: 127.0.0.1

      • logger: Logger

        default: console Object

      • OptionalmaxRetryTimeout?: number
      • port: number

        default: 8021

    Returns FreeSwitchSocket

Properties

ref: string = ...

Methods

  • Start connecting to FreeSwitch, reconnect if needed

    Returns AsyncIterable<Socket, any, any>

  • Close the current connection to FreeSwitch and stop attempting to reconnect

    Returns void