Skip to content

Commit

Permalink
fix(socket): no protocol restriction
Browse files Browse the repository at this point in the history
  • Loading branch information
juneil committed May 15, 2017
1 parent a8467fa commit 4a6ceb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/socket.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export class ServerSocket {
this.subscribers = [];
/* istanbul ignore next */
this.server.on('request', req => {
const connection = req.accept('echo-protocol', req.origin);
const connection = req.accept(null, req.origin);
const socket = new Socket(req, connection, this);
const index = this.sockets.push(socket) - 1;
this.subscribers.forEach(sub => sub.apply(this, [ socket ]));
Expand Down

0 comments on commit 4a6ceb6

Please sign in to comment.