mahdi71's Recent Forum Activity

  • The problem was chrome and firefox blocking the websocket with WS but WSS is fine!

    So i have to just use secure websocket with WSS

    Thanks.

  • ok i test it more and here is the result:

    custom signalling server is running...

    on mobile with chrome its working. (ok)

    on nw.js export on pc its working (ok)

    on preview/html-export on chrome/edge on pc its not working (not ok) (scirra signalling wss is working)

    on another pc on the same network its not working (not ok) (scirra signalling wss is working)

    on the server itself its working (ok)

    __

    but why its like this ?

    why its working on nw.js export but not on html export or preview ?

    what is your guess Ashley ?

  • The problem makes no sense. The trigger fires before changing the "is connected" state. I would guess this is simply a mistake in your events. I can't tell any better without more information.

    thanks for the answer.

    i test it a little more and it seems messages can not be send via signalling server to the construct.

    do i need to use wss for the websocket to work or do ws working normally ? (i use ws for testing)

    trigger "on connected" look for the welcome message from signalling but "is connected" just look at ws.onopen .

    please if you know anything about this tell me.

  • Ashley ? please help me

  • hi,

    i bought the scirra signalling server from the store but it is not connecting

    i installed it then run it (on my local machine for testing) and it says its running and showing peers are connected but in construct triggers are not working, this is my problem:

    "on connected to signalling server" condition is not working but "is connected to signalling server" is showing true

    log in and join room is like this too . triggers are not working but "is"conditions are working!

    why is that ?

    can Ashley help me?

    edite: i think the one on the store is not updated to the last version

  • All this is handled by the browser and WebRTC library. It's not directly to do with Construct, so I can't help you I'm afraid. I would guess it either figures out which one performs best and uses that, or alternatively goes through them in order, connecting to the first one that successfully accepts the connection (i.e. only proceeding through the list if a server is down). It might even depend on the browser, and use different strategies on different platforms.

    thanks for the answer it was really helpful

  • Try Construct 3

    Develop games in your browser. Powerful, performant & highly capable.

    Try Now Construct 3 users don't see these ads
  • anybody ?

  • is your server windows or linux?

    if windows and if you have wamp then you have to config a domain and export your construct project as html then put it in htdocs folder (C:\xampp\htdocs) (backup all other things in this folder then delete them)

    if you want to have a front page and the game be like in this address "example.com/thegame/"

    then you have to put construct export in a sub folder with the name of "thegame"

  • I don't see why you don't go and confirm it yourself

    its a really hard test . i think scirra has to be more clear on that. on the manuals

  • Sure ice candidates are given a priority that depends on multiple things like local network and peer connection and turn server latency and then it attempts a connection with the highest priority first to get the best connection quality and it keeps trying to make a connection with the next best candidate if it fails

    thanks for the answer.

    so if i use multiple turn and stun servers (with add ice action) then multiplayer plugin will use the most stable and less latency server for that client. (for example it use a usa turn server for a usa peer and host and use a uk server for uk and so on...)

    if anyone else can confirm that i will be so happy...

  • is anyone know this ?

    can construct team answer this for me ?

  • i think unity ads is a good option

mahdi71's avatar

mahdi71

Member since 24 Aug, 2014

None one is following mahdi71 yet!

Trophy Case

  • 10-Year Club
  • Email Verified

Progress

11/44
How to earn trophies