receiveRoomMessage
receiveRoomMessage(
world,message,session):void
Defined in: packages/engine/src/gameplay/replication/client.ts:400
Applies one of the room’s messages to the client’s world. The welcome brings the world whole and names the client’s hero; a delta brings what changed. Neither writes the own hero’s movement, which the reconciliation alone overrides, on the acknowledgement after each delta.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
world |
World |
message |
RoomMessage |
session |
RoomSession |
Returns
Section titled “Returns”void