createGame

fun createGame(    gameID: String,     sessionID: String,     greetingMessage: String)

Creates a new game session on the server by sending a CreateGameMessage.

Parameters

gameID

ID of the current game to be used.

sessionID

Unique id for the new session to be created on the server.

greetingMessage

Greeting message to be broadcast to all players joining this session.

Throws

If client is not connected to a host.


fun createGame(gameID: String, greetingMessage: String)

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

gameID

ID of the current game to be used.

greetingMessage

Greeting message to be broadcast to all players joining this session.

Throws

If client is not connected to a host.