Skip to content

Commit

Permalink
Merge branch 'devel' into server-render-es5-shim
Browse files Browse the repository at this point in the history
  • Loading branch information
benjamn committed Nov 14, 2017
2 parents 19bdde5 + 68053b3 commit e38aa34
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/ddp-client/client/stream_client_sockjs.js
Expand Up @@ -168,7 +168,7 @@ export default class ClientStream extends StreamClientCommon {
// that we can connect to random hostnames and get around browser
// per-host connection limits.
const { SockJS } = global;
this.socket = SockJS === "function"
this.socket = typeof SockJS === "function"
? new SockJS(toSockjsUrl(this.rawUrl), undefined, options)
: new WebSocket(toWebsocketUrl(this.rawUrl));

Expand Down

0 comments on commit e38aa34

Please sign in to comment.