index: one more tiny printing change
Signed-off-by: Sean Cross <sean@xobs.io>
This commit is contained in:
parent
5a8f7b0cd7
commit
788485a7e2
2
index.js
2
index.js
@ -146,7 +146,7 @@ io.on('connection', (socket) => {
|
|||||||
if (createHash(data.secret) === data.socketId) {
|
if (createHash(data.secret) === data.socketId) {
|
||||||
data.secret = null;
|
data.secret = null;
|
||||||
socket.broadcast.emit(data.socketId, data);
|
socket.broadcast.emit(data.socketId, data);
|
||||||
console.log(`${progname} master connected on ${green}data.socketId${reset}`);
|
console.log(`${progname} master connected on ${green}${data.socketId}${reset}`);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
console.log(`${progname} given secret ${red}${data.secret}${reset} doesn't match`);
|
console.log(`${progname} given secret ${red}${data.secret}${reset} doesn't match`);
|
||||||
|
Loading…
Reference in New Issue
Block a user