From 196706aef7a096bb1d112367cce8b2db8bce7d58 Mon Sep 17 00:00:00 2001 From: "jeff.smith34r32@gmail.com" <4r2CAC9tExT82Lfq5HW*$0#j> Date: Wed, 24 Jul 2019 18:46:06 -0700 Subject: [PATCH] Fixed problem with not being able to execute. ALL Tests are now running successfully. --- lib/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/index.js b/lib/index.js index f58bdad..46d4d66 100644 --- a/lib/index.js +++ b/lib/index.js @@ -137,7 +137,7 @@ function authorize(options, onConnection) { return function(socket, accept){ var token, error; - var handshake = data.handshake; + var handshake = socket.handshake; var req = socket.request || socket; var authorization_header = (req.headers || {}).authorization;