create Game
fun createGame( gameID: String, sessionID: String, greetingMessage: String)
Content copied to clipboard
Creates a new game session on the server by sending a CreateGameMessage.
Parameters
game ID
ID of the current game to be used.
session ID
Unique id for the new session to be created on the server.
greeting Message
Greeting message to be broadcast to all players joining this session.
Throws
If client is not connected to a host.
Creates a new game session on the server by sending a CreateGameMessage. The session ID will be set automatically and returned through the onCreateGameResponse.
Parameters
game ID
ID of the current game to be used.
greeting Message
Greeting message to be broadcast to all players joining this session.
Throws
If client is not connected to a host.