Skip to content

Commit

Permalink
Pass null to res instead of undefined
Browse files Browse the repository at this point in the history
PR-URL: #382
  • Loading branch information
tshemsedinov committed Mar 23, 2023
1 parent f1e3f69 commit cb501f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/ws.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const { Channel } = require('./channel.js');

class WsChannel extends Channel {
constructor(server, req, connection) {
super(server, req);
super(server, req, null);
this.connection = connection;
connection.on('message', (data, isBinary) => {
if (isBinary) this.binary(data);
Expand Down

0 comments on commit cb501f1

Please sign in to comment.