Navigation

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

    Best posts made by bralz

    Please add a removal method for onMessage for clients

    There is a method "removeAllListeners()" that removes ALL listeners from a client. I would suggest a method of removing a specific onMessage listener by name.

    A useful pattern for in socket.io is to emit some message and then await a Promise for its broadcast back. This allows you to chain the response as part of a parent function. However, its safest to then do a socket.off() for that message type once you've gotten it back. I'd like this same ability when using Colyseus, thanks.

    posted in Questions & Help •
    RE: Documentation on deploying with HTTPS? (solved)

    The issue was that you should not specify the port 2567 when using wss.

    However, I am now getting CORS errors attempting to connect.

    EDIT: And that issue was that protobuf files don't seem to get copied into lib as part of the default build process. I had to cp them in myself.

    I would still like to know however if it's possible to override CORS to only allow certain websites to connect.

    posted in Colyseus Arena - Cloud Hosting •