spectateGame

fun spectateGame(sessionID: String, greetingMessage: String)

Joins an existing game session as a spectator on the server by sending a SpectatorJoinGameMessage.

Parameters

sessionID

Unique id for the existing session to join to.#

greetingMessage

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

Throws

If client is not connected to a host.