*Add protomux userData field as null, otherwise it does not get set
This commit is contained in:
parent
4cd89acb12
commit
382ce99ada
|
@ -166,6 +166,7 @@ export class Socket extends Client {
|
|||
private syncMutex = new Mutex();
|
||||
|
||||
private swarm: SwarmClient;
|
||||
private userData?: any = null;
|
||||
|
||||
constructor(id: number, swarm: SwarmClient) {
|
||||
super();
|
||||
|
@ -195,6 +196,7 @@ export class Socket extends Client {
|
|||
}
|
||||
|
||||
private async _initSync() {
|
||||
this.userData = null;
|
||||
const mux = Protomux.from(this);
|
||||
|
||||
this.swarm.emit("setup", this);
|
||||
|
|
Loading…
Reference in New Issue