Returns true if the underlying connection is open
Adds an event listener to the connection
The event name that you want to listen to.
The callback to be called when the event occurs.
Closes the underlying connection
Opens the underlying connection to the Gremlin Server, if it's not already opened.
Removes a previously added event listener to the connection
The event name that you want to listen to.
The event handler to be removed.
Send a request to the Gremlin Server and stream results incrementally. Returns an AsyncGenerator that yields individual result items as they are deserialized from the response. For bulked responses, yields Traverser objects.
The script to send
Optionalparameters: anyThe query parameters, if any.
OptionalrequestOptions: RequestOptionsConfiguration specific to the current request.
Send a request to the Gremlin Server and buffer the entire response.
The script to send
Optionalparameters: anyThe query parameters, if any.
OptionalrequestOptions: RequestOptionsConfiguration specific to the current request.
Creates a new Transaction for executing operations within an explicit transaction. Transactions are short-lived and single-use. After commit or rollback, create a new Transaction for the next unit of work. The traversal source (g alias) is inherited from this Client.
A Client contains methods to send messages to a Gremlin Server.