From 41cad85e854ba3ea88a63a0eeede404f728235c4 Mon Sep 17 00:00:00 2001 From: karl0ss Date: Sat, 13 Jul 2019 23:37:03 +0100 Subject: [PATCH] update example file --- Example.js | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/Example.js b/Example.js index 7f70ef8..f6860a1 100644 --- a/Example.js +++ b/Example.js @@ -6,8 +6,8 @@ const httpPort = 3000; // Create a settings object to pass PK key and map sockets to names const settings = { - LOG_PACKET: false, //Show incoming packet data from the socket - ORVIBO_KEY: '', // put your PK key here as plain text (See Readme) + LOG_PACKET: true, //Show incoming packet data from the socket + ORVIBO_KEY: process.env.orviboPK, // put your PK key here as plain text (See Readme) plugInfo : [ // Add uid and a name so you can easily identify the connected sockets { @@ -16,9 +16,8 @@ const settings = { }, ], }; - +console.log(settings.ORVIBO_KEY) let orvibo = new Orvibo(settings); - // When a socket first connects and initiates the handshake it will emit the connected event with the uid of the socket; orvibo.on('plugConnected', ({uid, name}) => { console.log(`Connected ${uid} name = ${name}`);