Navigation

    Colyseus
    • Login
    • Search
    • Recent
    • Tags
    • Users
    1. Home
    2. usamasermad
    U

    usamasermad

    @usamasermad

    Chat Follow Unfollow
    2
    Reputation
    9
    Posts
    1385
    Profile views
    0
    Followers
    1
    Following
    Joined Last Online

    • Profile
    • More
      • Continue chat with usamasermad
      • Flag Profile
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups
    usamasermad Follow

    Posts made by usamasermad

    RE: Can't rejoin room in Unity3D

    For your knowledge I am testing it by increasing my packet drop rate to 90%. It works fine if i leave the room with consented = false. But doesn't reconnect if client connection is closed

    posted in Questions & Help •
    RE: Can't rejoin room in Unity3D

    @endel Hey sorry to interrupt but I have noticed that unity client cant reconnect if our connection is closed i.e client.OnClose. However Rejoin works fine if client is not closed

    • Like in this
      0_1551786126471_clientclose.PNG

    Should i create new client and then try to Rejoin it with server or it is not yet implemented on serverside?

    posted in Questions & Help •
    RE: Can't rejoin room in Unity3D

    @endel Thanks a lot for your quick solution. Rejoin works like a charm for me now. New updated demo project is also very good organized and easy to understand and has cleared a lot of confusions.

    posted in Questions & Help •
    RE: Can't rejoin room in Unity3D

    Currently we don't have any kind of validation required for this room. It is just only named as onAuth() because we send email and password to the server in this room but that is only after clicking on register button which means we dont have to send anything automatically to the server

    posted in Questions & Help •
    RE: Can't rejoin room in Unity3D

    As you suggested I changed my code to this but didn't reconnected
    0_1551707666373_new rejoin.PNG

    and these are my logs for your convenience
    0_1551707699468_rejoin logs.PNG

    posted in Questions & Help •
    RE: Can't rejoin room in Unity3D

    So you mean that in my Rejoin coroutine i just need to add

    room.OnReadyToConnect += (sender, e) => 
    {
        Debug.Log("Ready to connect to room!");
         StartCoroutine (room.Connect ());
    };
    

    or only StartCoroutine (room.Connect ()); and everything else till Rejoin remains the same

    posted in Questions & Help •
    RE: Can't rejoin room in Unity3D

    @endel we are using 0.9.32 on server side.

    • Here is the snippet of the server side code
      1_1551685927956_serverside.png

    • Here is the snippet of the unity 3d
      0_1551685927955_client.PNG

    Thanks.

    posted in Questions & Help •
    Can't rejoin room in Unity3D

    Hi, I am struggling to rejoin my client with server. I am using room.rejoin(roomName, sessionID) on my connection close event. But it is not sending request back to server. While we have also used allowReconnection on server side

    posted in Questions & Help •
    RE: Could we start Colyseus app with npm package forever?

    Aah interesting I'm also wondering about this thing but don't know about forever package. Hope so it will solve my problem too while deploying the game I'm working on multiplayer puzzle game in JS. And noticed that whenever server is crashed need to spin it again.

    posted in Questions & Help •