-
Notifications
You must be signed in to change notification settings - Fork 2
Options
niico edited this page Mar 10, 2018
·
2 revisions
import { Client } from 'draconode';
const client = new Client({
checkProtocol: true, // fail if server protocal different from client protocol (should be true)
utcOffset: number, // utcOffset in minutes of the client, default to the system one
proxy: 'http://server:port', // proxy, if none direct connection will be made
timeout: 20*1000, // timeout in ms of the http request (20s is the same as the app)
protocolVersion: number, // force the protocolVersion (should be left to default)
clientVersion: number, // force the clientVersion (should be left to default)
});