Connection
Connect to a remote server.
new Connection(options)
new Connection(options)
Create a server to be able to connect remotely.
Parameter
Default
Description
options
options.address
options.authorization
options.authorization.username
options.authorization.password
options.auto_reconnect
true
options.auto_reconnect_interval
5
Example:
const example_connection = new <PeakDB>.Connection({ "address": "127.0.0.1:4951", "authorization": { "username": "fir4tozden", "password": "ZdJuTNqUXpqNrw2H" }, "auto_reconnect": true, "auto_reconnect_interval": 5 });
Last updated