fix: correct default websocket port

This commit is contained in:
Michael Vines 2018-11-01 20:42:14 -07:00
parent 8468d3ebd1
commit 452fd1b785
1 changed files with 3 additions and 0 deletions

View File

@ -225,6 +225,9 @@ export class Connection {
url.protocol = 'ws';
url.host = '';
url.port = String(Number(url.port) + 1);
if (url.port === '1') {
url.port = '8900';
}
this._rpcWebSocket = new RpcWebSocketClient(
urlFormat(url),
{