We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2d44ef8 commit d602201Copy full SHA for d602201
lib/servers/SockJSServer.js
@@ -64,7 +64,7 @@ module.exports = class SockJSServer extends BaseServer {
64
// f should be passed the resulting connection and the connection headers
65
onConnection(f) {
66
this.socket.on('connection', (connection) => {
67
- f(connection, connection.headers);
+ f(connection, connection ? connection.headers : null);
68
});
69
}
70
0 commit comments