Compare commits
No commits in common. "b3d6fd46683b01c1a7f10b60e48079e475c4257d" and "35bf05c25ec48099017a35b9c7953a8e38f6c24a" have entirely different histories.
b3d6fd4668
...
35bf05c25e
|
@ -68,7 +68,7 @@ class MultiSocketProxy extends proxy_js_1.default {
|
|||
}
|
||||
socketClass;
|
||||
_peers = new Map();
|
||||
_nextPeer;
|
||||
_nextPeer = (0, util_js_1.roundRobinFactory)(this._peers);
|
||||
_server = false;
|
||||
_allowedPorts = [];
|
||||
constructor(options) {
|
||||
|
@ -87,7 +87,6 @@ class MultiSocketProxy extends proxy_js_1.default {
|
|||
if (options.server) {
|
||||
this._server = true;
|
||||
}
|
||||
this._nextPeer = (0, util_js_1.roundRobinFactory)(this._peers);
|
||||
}
|
||||
_socketMap = new Map();
|
||||
get socketMap() {
|
||||
|
|
|
@ -89,10 +89,9 @@ export default class MultiSocketProxy extends Proxy {
|
|||
await conn.init();
|
||||
this.emit("peer", conn);
|
||||
}
|
||||
|
||||
private socketClass: any;
|
||||
private _peers: Map<string, PeerEntity> = new Map<string, PeerEntity>();
|
||||
private _nextPeer;
|
||||
private _nextPeer = roundRobinFactory(this._peers);
|
||||
private _server = false;
|
||||
private _allowedPorts = [];
|
||||
|
||||
|
@ -110,7 +109,6 @@ export default class MultiSocketProxy extends Proxy {
|
|||
if (options.server) {
|
||||
this._server = true;
|
||||
}
|
||||
this._nextPeer = roundRobinFactory(this._peers);
|
||||
}
|
||||
|
||||
private _socketMap = new Map<number, number>();
|
||||
|
|
Loading…
Reference in New Issue