gremlin
    Preparing search index...

    A Client contains methods to send messages to a Gremlin Server.

    Index

    Constructors

    Accessors

    Methods

    • Adds an event listener to the connection

      Parameters

      • event: string

        The event name that you want to listen to.

      • handler: (...args: any[]) => unknown

        The callback to be called when the event occurs.

      Returns void

    • Removes a previowsly added event listener to the connection

      Parameters

      • event: string

        The event name that you want to listen to.

      • handler: (...args: any[]) => unknown

        The event handler to be removed.

      Returns void

    • Send a request to the Gremlin Server and receive a stream for the results.

      Parameters

      • message: string

        The script to send

      • Optionalbindings: any

        The script bindings, if any.

      • OptionalrequestOptions: RequestOptions

        Configuration specific to the current request.

      Returns Readable

    • Send a request to the Gremlin Server.

      Parameters

      • message: string

        The script to send

      • Optionalbindings: any

        The script bindings, if any.

      • OptionalrequestOptions: RequestOptions

        Configuration specific to the current request.

      Returns Promise<any>