Navigation

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

    Best posts made by kotwys

    RE: room.OnMessage not registered for Schema message: MyMessage

    The message itself contains only data so it isn’t used to detect the message type (you’re trying to catch “readyToStart” messages, right?).

    I don’t know how Unity client works but as I could understand it separates messages by classes names if not specified. So maybe this should look like this:

    room.OnMessage<MyMessage>("MyMessage", (message) => {
      // your code
    });
    
    posted in Questions & Help •