Skip to content

Commit

Permalink
Added a debug message for when web-socket connections are made
Browse files Browse the repository at this point in the history
  • Loading branch information
MKHenson committed Jun 23, 2016
1 parent 2bcbdaf commit 798e009
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/controllers/comms-controller.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,9 @@ export class CommsController extends events.EventEmitter
{
var headers = (<http.ServerRequest>ws.upgradeReq).headers;

if (cfg.debugMode)
winston.info(`Websocket connection origin: ${headers.origin}`, {process : process.pid})

var clientApproved = false;
for (var i = 0, l = cfg.websocket.approvedSocketDomains.length; i < l; i++)
{
Expand Down

0 comments on commit 798e009

Please sign in to comment.