Server
Create a server and allow remote connection.
new Server(options)
new Server(options)
Create a server to be able to connect remotely.
Parameter
Default
Description
options
options.port
4951
options.users
options.users[].username
options.users[].password
options.users[].permissions
Example:
const example_server = new <PeakDB>.Server({ "port": 4951, "users": [ { "username": "fir4tozden", "password": "ZdJuTNqUXpqNrw2H", "permissions": 1 << 0 | 1 << 3 // read and delete }, { "username": "nehir", "password": "yPIkXo3l82aMbJZc", "permissions": 1 << 0 | 1 << 1 | 1 << 2 // read, write and update } ] });
Last updated