| Package | Description |
|---|---|
| io.gs2.realtime | |
| io.gs2.realtime.control |
| Modifier and Type | Method and Description |
|---|---|
CreateGatheringResult |
Gs2RealtimeClient.createGathering(CreateGatheringRequest request)
ギャザリングを作成。
ギャザリングを作成すると、ゲームサーバが起動します。 ゲームサーバはWebSocketで接続することができ、同じゲームサーバに接続しているユーザ間でメッセージをやり取りすることができます。 ゲームサーバとの通信プロトコルの説明については別途ドキュメントを確認してください。 userIds にユーザIDを指定することで、ギャザリングに参加できるユーザのIDを制限することができます。 ギャザリング作成時に参加するユーザが確定している場合は指定してください。 省略すると、暗号鍵を知っていれば誰でも参加することができます。 |
| Modifier and Type | Method and Description |
|---|---|
CreateGatheringRequest |
CreateGatheringRequest.withGatheringPoolName(String gatheringPoolName)
ギャザリングプール名を設定。
|
CreateGatheringRequest |
CreateGatheringRequest.withName(String name)
ギャザリング名を設定。
|
CreateGatheringRequest |
CreateGatheringRequest.withUserIds(List<String> userIds)
参加を許可するユーザIDリストを設定。
|
Copyright © 2016 Game Server Services, Inc. AllRights Reserved.