iPearServer

An iPearServer object is basically your FiveM server. You provide its SECRET KEY and ENDPOINT. This object is the core of the system to communicate with our services.

Example

const app = new iPearServer(options)

Available options (object)

KeyTypeDefaultDescription
secretKeystring
required
/Secret key retrieved from your iPear client area.
endpointstring
required
/Endpoint URL to iPear's services.
endpoint_versionstring'v1'Endpoint version to use.
wakeListobject{ ... }Wake list options
wakeList.filenamestringwakelist.dbDatabase name of the wakelist
wakeList.printLogsbooleanfalsePrint in console the logs related to the wakelist management (load, save, errors...)
loggerobject{ ... }Logger options
logger.connectionsLogsbooleantruePrint in console the logs related to the websocket connections between your server and iPear
logger.incomingEventsLogsbooleanfalsePrint in console the logs related to the incoming events sent by iPear
logger.outgoingEventsLogsbooleanfalsePrint in console the logs related to the outgoing events your server sent
logger.wakeListLogsbooleanfalsePrint in console the logs related to the wakelist movements (add player, remove player)
logger.playersManagementLogsbooleanfalsePrint in console the logs related to the players management (create, delete, retrieve qrcode/secret code)

Powered by Doctave