Hi:
I got an exception with Sfx 1.7.6.
Stack:
JS Exception: scope._sfs is null, file: assets/src/assets/plugins/sfs2x-api-1.7.6.js, lineno: 18
Stack: _threadRunner@assets/src/assets/plugins/sfs2x-api-1.7.6.js:18:16919
Reproduction steps:
1. Login game with Sfx
2. Set enableLagMonitor(true) open pingpong package
3. Try make connect lost(turn off wifi or switch it)
4. Recv onConnectionLost, remove eventListener, set enableLagMonitor(false), set sfx instance with null
5. Reconnect game
after steps, then ever pingpong package recv, this exception will happen.
so, is my fault or Sfx ?
SFX JS 1.7.6 exception
-
- Posts: 5
- Joined: 02 Jun 2016, 06:08
Re: SFX JS 1.7.6 exception
When a disconnection occurs, the internal lag monitor is destroyed, so the enableLagMonitor(false) is not needed.
In any case this shouldn't do any harm.
Did you try to reproduce the issue with our simple Connector example (just adding the login and lag monitoring parts)?
This could let us better understand what is going on.
In any case this shouldn't do any harm.
Did you try to reproduce the issue with our simple Connector example (just adding the login and lag monitoring parts)?
This could let us better understand what is going on.
Paolo Bax
The SmartFoxServer Team
The SmartFoxServer Team
Return to “SFS2X HTML5 / JavaScript API”
Who is online
Users browsing this forum: No registered users and 52 guests