Skip to content

Commit

Permalink
#1: increase defaultMaxListeners
Browse files Browse the repository at this point in the history
  • Loading branch information
binaryDiv authored Sep 8, 2019
1 parent c0a4718 commit b79347e
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions opt/afra_door/lock_server.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,9 @@ var http = require("http");
var url = require("url")
var fs = require("fs");

// Increase max listeners to make the server a bit more stable regarding 'MaxListenersExceededWarning'
require('events').EventEmitter.defaultMaxListeners = 30;

// Create a new Key_Ble instance that represents one specific door lock
var key_ble = new keyble.Key_Ble({
address: "00:1a:22:09:8b:d7", // The bluetooth MAC address of the door lock
Expand Down

0 comments on commit b79347e

Please sign in to comment.