Skip to content

Commit 043e9e5

Browse files
Corrects error in #228 (#229)
* Implemented parsing of ROOM_DATA_BYTES Unity clients can now receive data sent from the server using client.sendBytes. * Corrected a logic error
1 parent a4701d4 commit 043e9e5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Assets/Colyseus/Runtime/Colyseus/Room/ColyseusRoom.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -503,7 +503,7 @@ protected async void ParseMessage(byte[] bytes)
503503
{
504504
Patch(bytes, 1);
505505
}
506-
else if (code == ColyseusProtocol.ROOM_DATA || ColyseusProtocol.ROOM_DATA_BYTES)
506+
else if (code == ColyseusProtocol.ROOM_DATA || code == ColyseusProtocol.ROOM_DATA_BYTES)
507507
{
508508
IColyseusMessageHandler handler = null;
509509
object type;

0 commit comments

Comments
 (0)