Navigation

  • Recent
  • Tags
  • Users
  • Search
  • Login
Colyseus
  • Login
  • Search
  • Recent
  • Tags
  • Users

Documentation GitHub

We're migrating to GitHub Discussions. This forum does not accept new registrations since April 6, 2023.
  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 • 21 Sept 2020, 19:40

© 2023 Endel Dreyer