> room createWhichclienttocreatearoom? [tcp/udp] > udp[UID: test1][SID(UDP): xxxx][RoomID: yyyy]> New member joined room - Hello from test2
uid: test2 で Room に参加する
> room join
Which client to join a room? [tcp/udp] udp
Type room ID > yyyy
handleOnJoinRoom
UDP Room yyyy joined - success true and it was created at 1728033877
New member joined room - Hello from test2
[UID: test2][SID(UDP): zzzz][RoomID: yyyy]
> room broadcast
Which client to broadcast to a room? [tcp/udp] udp
Type room ID: yyyy
Type message: Hello, Diarkis!!
Room broadcast - Hello, Diarkis!!
[UID: test1][SID(UDP): xxxx][RoomID: yyyy]
[UID: test1][SID(UDP): xxxx][RoomID: yyyy]
> room leave
Which client to leave a room? [tcp/udp]
udp
Type room ID:
yyyy
Room left. success:true
[UID: test1][SID(UDP): xxxx]
テストクライアントのコマンド確認
help コマンドで、利用できるコマンドの一覧が確認できます。
help room のように引数にモジュール名をいれることで、特定のモジュールに絞って確認もできます。
> help
================ Command List ================
help - Display the list of valid commands
help {module name} - Display the list of valid commands for the module
reconnect - Reconnects to another server
disconnect - Disconnects
ph - Sends a TCP Hey
h - Sends a UDP Hello
rh - Sends an RUDP Hello
die - Ungraceful disconnect from the server
:
=============================================
> help room
================ Command List ================
room create - Creates a room
room join - Joins a room
room join random - Joins a random room or creates a new room
room leave - Leaves a room
room get owner - Get a room owner id
room get members - Get a room member ids
room get num - Get a number of room members
room migrate - Migrates a room to another server
room message - Sends a message to one selected member of the room
room broadcast - Reliable broadcast to a room
room + - Alias for `room broadcast`
room ubroadcast - Unreliable broadcast to a room
room - - Alias for `room ubroadcast`
room p2p - Starts P2P with room members
room relay - Sends a relay message to other room members
room relay to - Sends a relay message to selected room members
room relay profile - Sends a relay profile
room relay to profile - Sends a relay profile to selected room members
room props update - Update room property
room props get - Get room property
room props incr - Increment room property
room props sync - Sync room property
room reserve - Reserves a room
room cancel reservation - Cancel a room reservation
room register - Registers a room with a type
room find - Finds rooms by type
room obj incr - Increment room objects
room obj delete - Delete room objects
room obj update - Update room objects
room chat - Chat in a room
room chat log - Get chat log in a room
=============================================