basex.Session #24
Labels
No labels
dependencies
javascript
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
quodatum/basex-node#24
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Hello,
In
var session=basex.Session(host, port, username, password)is basex.Session a synchronous function? Can it be assumed that the session was created successfully if no socketError event is emitted?
Thanks.
The
Sessionfunction only starts the connection process by calling net.createConnection. The rest is asynchronous. EachSessionhas a stateImmediately after a session object is created with no error it is in state CONNECTING
Thank you. Is there a way then that my application can be informed when the connection has been made successfully?
The session will emit a "connect" event https://github.com/apb2006/basex-node/blob/master/index.js#L127