Correct WebSocket ctor invocation

This commit is contained in:
Tony Garnock-Jones 2019-06-20 13:34:05 +01:00
parent 553490e77e
commit 86e81e83f0
1 changed files with 1 additions and 1 deletions

View File

@ -42,7 +42,7 @@ spawn named 'WebSocketFactory' {
const connect = () => {
disconnect();
console.log('WebSocket', id, url, 'connecting');
ws = new _WebSocket(url, options);
ws = new _WebSocket(url, [], options.toJS());
ws.onerror = Dataspace.wrapExternal((e) => {
console.error('WebSocket', id, url, e);