leaveGame

fun leaveGame(goodbyeMessage: String)

Leaves the current game session by sending a LeaveGameMessage.

Parameters

goodbyeMessage

Goodbye message to be broadcast to all other players in this session.

Throws

If client is not connected to a host.