I am trying to use multiplayer. However, the logs just say "attempting to establish connection to host..." but then it just kicks for timeout.
Joining as host, however, does work perfectly.
I thought it was my code's fault so I tried the default "Multiplayer game example" game. The same problem occurred.
Also, my VPN sent me a message when I connected as a peer saying that this website might compromise your data. This made me think that this bug could have something to do with firewall or antivirus.
I suggest you make an alternative way of multiplayer (e.g. using your server as host) because for now this peer-to-peer idea or websocket do not feel very stable.
If this matters, I am using a public network but I tried to connect via VPN and it still did not work.
I thought this might be scirra signaling server so I purchased and set up my own, but that did not help at all.
Another thing, when a peer tries to join, the host gets a popup with the following error:
Object doesn't support property or method 'createDataChannel' http://mywebsite.com/c2mp-peer.js, line 192 (col 4)
This may be a bug in Construct 2 or a third party plugin behavior - please report it to the developer following the bug report guidelines. Errors will be logged to the console.
And the console error I get is:
SCRIPT438: Object doesn't support property or method 'createDataChannel'
Please fix this or tell me the solution ASAP.