Colyseus Multiplayer Client for Haxe

Hello, congrats on the Haxe support for the library.

Trying to send a string as a message from one client to the others in the same room, in the nyamcat example, but not getting there.
Shouldn’t : this.room.send({ message: “TEST”}); register with the onMessage functions?

            this.room.onMessage = function (message) {
		trace("ROOM MESSAGE: " + Std.string(message));
	};

Is there a way to broadcast like in 01-chat-room.ts colyseus example?

Edit 1: Managed to get the messages showing in the running server at 2567 but not being able to broadcast to other clients in the same room, still. this.room.send({message:‘TEST’}); stops at the server and other clients don’t get the test message.

Edit 2: I see broadcast is only available in the server so pretty much a mute point to ask for it in the client.

1 Like