Navigation

    Colyseus
    • Login
    • Search
    • Recent
    • Tags
    • Users
    1. Home
    2. KG204
    3. Best
    • Profile
    • More
      • Continue chat with KG204
      • Flag Profile
      • Following
      • Followers
      • Topics
      • Posts
      • Best
      • Groups

    Best posts made by KG204

    RE: Getting URL is not defined when connecting to Room

    Thank you! Apologies if I thought it was colyseus related.

    Its probably that but I wont be able to test for a while (computer crashed and fails to start, less than a year old, still under warranty)

    And that's why unit tests should always be used. Could have caught the error. I come from a compiled background so still getting used to debugging JS

    posted in Questions & Help •
    RE: How to send message to client by client ID

    @deadwind88 I think I can help with this.

    You need to create an onMessage handler on your client side. Refer to this https://docs.colyseus.io/client-room/#onmessage
    so lets say your server code is working fine, in the client, you'd need to extract that message.
    ex: onMessage(…) {
    if (message.action === "request_dule") {…}
    }

    posted in Questions & Help •