Creates a new instance of Client.
The resource uri.
Optionaloptions: ClientOptions = {}The connection options.
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 send session close request before connection close if session mode
Opens the underlying connection to the Gremlin Server, if it's not already opened.
Removes a previowsly 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 receive a stream for the results.
The script to send
Optionalbindings: anyThe script bindings, if any.
OptionalrequestOptions: RequestOptionsConfiguration specific to the current request.
Send a request to the Gremlin Server.
The script to send
Optionalbindings: anyThe script bindings, if any.
OptionalrequestOptions: RequestOptionsConfiguration specific to the current request.
A Client contains methods to send messages to a Gremlin Server.