Creates a new instance of Connection.
The resource uri.
Optionaloptions: ConnectionOptions = {}The connection options.
ReadonlyoptionsThe connection options.
ReadonlyurlThe resource uri.
StaticprefixedThe connection-level default batch size, used to fill a request's batchSize when unset.
The connection-level default for bulkResults, applied to every request unless overridden
per-request. Defaults to false.
Closes the Connection.
Calls each of the listeners registered for a given event.
Return an array listing the events for which the emitter has registered listeners.
Return the number of listeners listening to a given event.
Return the listeners registered for a given event.
Add a listener for a given event.
Optionalcontext: anyAdd a one-time listener for a given event.
Optionalcontext: anyOpens the connection, if its not already opened.
Remove all listeners, or those of the specified event.
Optionalevent: string | symbolRemove the listeners of a given event.
Optionalfn: (...args: any[]) => voidOptionalcontext: anyOptionalonce: booleanSend a request and stream the response incrementally. Returns an AsyncGenerator that yields deserialized result items. For bulked responses, yields Traverser objects.
In the GraphBinary v4 streaming protocol, the server sends the status after all result data. If the server encounters an error mid-traversal, values yielded before the error are valid partial results. A ResponseError is thrown after the last value has been yielded.
Send a request and buffer the entire response. Returns a Promise
Represents a single connection to a Gremlin Server.