Skip to main content
Deno 2 is finally here 🎉️
Learn more
Latest
class default
import { default } from "https://deno.land/x/neo4j_lite_client@4.4.6/bolt-connection/bolt/bolt-protocol-v1.js";

Constructors

new
default(
server,
chunker,
unnamed 2?,
createResponseHandler?,
log,
onProtocolError,
)

Properties

readonly
currentFailure
readonly
version

Returns the numerical version identifier for this protocol

Methods

_createPacker(chunker)
_createUnpacker(disableLosslessIntegers, useBigInt)
_onLoginCompleted(metadata, onCompleted)
_onLoginError(error, onError)
beginTransaction(unnamed 0?)

Begin an explicit transaction.

commitTransaction(unnamed 0?)

Commit the explicit transaction.

Checks if exist an ongoing observable requests

initialize(unnamed 0?)

Perform initialization and authentication of the underlying connection.

Veritfy the protocol is not broken.

Notifies faltal erros to the observers and mark the protocol in the fatal error state.

Notifies the current fatal error to the observer

Get the packer.

Perform protocol related operations for closing this connection

Enqueue the observer if the protocol is not broken. In case it's broken, the observer will be notified about the error.

reset(unnamed 0?)

Send a RESET through the underlying connection.

Reset current failure on the observable response handler to null.

Rollback the explicit transaction.

run(
query,
parameters,
unnamed 2?,
)

Send a Cypher query through the underlying connection.

Transform metadata received in SUCCESS message before it is passed to the handler.

Get the unpacker.

Updates the the current observer with the next one on the queue.

write(
message,
observer,
flush,
)

Write a message to the network channel.