Problem Description
Multiplayer plugin gives me a Javascript error when the event "On signalling disconnected" AND "Variable1=0" triggers, the peer's value of this variable is NOT equal to 1 and after that the peer tries to reconnect to the signalling server. You will probably see it better in the capx.
Attach a Capx
capx
Description of Capx
In the capx, you connect to the signalling server with the Multiplayer Plugin. When you are the host and you disconnect from the signalling server, peers get kicked. On kicked, peers disconnect from the signalling server and change the value of a variable from 0 to 1. Then, the event "On signalling disconnected" AND "Variable1=0" triggers and peers get a Javascript Error.
Steps to Reproduce Bug
- Run the capx on Chrome and duplicate the browser tab.
- Make sure you're the host in one of the browser tabs and a peer in the other one.
- Disconnect the host from the signalling server (click on the button in the host tab)
- You will see a Javascript error
Observed Result
Javascript error (you can see it in the Browser log)
Expected Result
I expect peers to reconnect to signalling server, without any bug, and be able to resume their multiplayer activity although the host leaves the game/chat.
Affected Browsers
- Chrome: (YES)
- FireFox: (DIDN'T TEST)
- Internet Explorer: (DOESN'T SUPPORT MULTIPLAYER)