Handles incoming messages
the player that sent the message
the sent ClientMessage
The song the player picked in the choose step.
The name of the song artist.
A URL to the audio file of the song. Currently only audio previews from Apple Music, SoundCloud and YT are allowed.
Cover URL of the song.
The URL users will be redirected to when clicking.
The name of the song.
The selected start pos for the song.
Optionalanswer?: stringProvided only for PlayerPicksGame. The string of the song name the player guessed.
OptionalanswerIndex?: numberProvided only for MultipleChoiceGame. The index of the selected answer.
The new playlist to add.
The playlist index to remove.
The new username.
Whether to perform advanced filtering tactics when generating the songs array. Currently just ignores parens when filtering for identical song names.
Whether to allow changing answer in multiple choice.
The music start position for a game.
Must be a float between
and
Can be null to use random position (multiple choice) / let picker decide (player picks)
Whether to prefer distractions by the same artist.
Whether to directly end the round after all players answered.
The game mode being played.
The amount of multiple choice answers to add.
The amount of time a player should have to pick a song.
The amount of rounds to play.
The time per question in each round.
The name of the player that should get host.
Where to send the player to.
Optionalerror?: stringOptional error message if the requested action could not be performed.
The message that is being confirmed.
The sequence number the pong should respond with
The sequence number asked for in the ping packet.
Calls each onTick listener that is registered
Registers a new listener that recieves client messages.
the object that wants to listen for client messages.
Unregisters a registered event listener.
the object that no longer wants to listen for client messages.
Contains all listeners that want to receive client messages.