Room Join Callback

Diarkis Room is distributed and the join callback maybe executed on a different server than the server that the target room exists.

When you call room join, it executes the join operation on the server that the target room exists.

This may not be the same server that the client that is attempting to join the room.

The callback of room join will always be executed on the server that the client is connected to.

 

room.Join(roomID string, userData *user.User, ver uint8, cmd uint16, message []byte, callback func(error, []string, string, int64, map[string]interface{}))

 

Case of Room Being On The Same Server

room-join-callback-1-1

Case of Room Being On A Different Server

room-join-callback-2-2