|
@@ -144,7 +144,7 @@ export default class NetworkController extends EventEmitter {
|
|
|
// }
|
|
|
// ),
|
|
|
|
|
|
- this.socket.start()
|
|
|
+ //this.socket.start()
|
|
|
}
|
|
|
)
|
|
|
}
|
|
@@ -199,22 +199,25 @@ export default class NetworkController extends EventEmitter {
|
|
|
this.socket.off("gameRoomAvailable"),
|
|
|
this.socket.off("socketClosed"),
|
|
|
this.rtcp.off("rtcDisconnected"),
|
|
|
- this.rtcp.off("rtcConnected"),
|
|
|
- this.connectAndStart(!0).then(({session_id: e})=>{
|
|
|
- this.room.updateCurrentNetworkOptions({
|
|
|
- sessionId: e
|
|
|
- }),
|
|
|
- reporter.updateBody({
|
|
|
- serverSession: e
|
|
|
- }),
|
|
|
- logger.info("reconnect success"),
|
|
|
- this.setState("connected"),
|
|
|
- this.reconnectCount = 0,
|
|
|
- this.emit("stateChanged", {
|
|
|
- state: "reconnected"
|
|
|
- })
|
|
|
- }
|
|
|
- ))
|
|
|
+ this.rtcp.off("rtcConnected")
|
|
|
+
|
|
|
+ // ,
|
|
|
+ // this.connectAndStart(!0).then(({session_id: e})=>{
|
|
|
+ // this.room.updateCurrentNetworkOptions({
|
|
|
+ // sessionId: e
|
|
|
+ // }),
|
|
|
+ // reporter.updateBody({
|
|
|
+ // serverSession: e
|
|
|
+ // }),
|
|
|
+ // logger.info("reconnect success"),
|
|
|
+ // this.setState("connected"),
|
|
|
+ // this.reconnectCount = 0,
|
|
|
+ // this.emit("stateChanged", {
|
|
|
+ // state: "reconnected"
|
|
|
+ // })
|
|
|
+ // })
|
|
|
+
|
|
|
+ )
|
|
|
}
|
|
|
prepareReconnect() {
|
|
|
this.rtcp.disconnect(),
|