Function that is called when input from a controller arrives. Has to be set in a controller server experience, outputs an error when not initialized.
Holds record of every connected client input state (player & controller).
Function that is called when input from a player arrives. Has to be set in a player server experience, outputs an error when not initialized.
State Manager that distributes settings for the whole app that concern controllers and players. Can only be changed on server side.
State Manager that distributes settings that concern controllers. Can only be changed on server side.
State Manager that distributes settings that concern players. Can only be changed on server side.
Explicitly pulls the current AppState.
The AppState if it exists, undefined otherwise.
Explicitly pulls the current ControllerState.
The ControllerState if it exists, undefined otherwise.
Explicitly pulls the current PlayerState.
The PlayerState if it exists, undefined otherwise.
Used as "person-in-the-middle" to ensure typesafety. Soundworks "state.subscribe()" method has to be registered with this function for every controller client that connects. It then get's forwarded, to the controllerInputCallback with correct type.
The state as plain JS object type (build by a json string).
Id of the connected controller.
Used as "person-in-the-middle" to ensure typesafety. Soundworks "state.subscribe()" method has to be registered with this function for every player client that connects. It then get's forwarded, to the playerInputCallback with correct type.
The state as plain JS object type (build by a json string).
Id of the connected player.
Changes the app state. Every controller & player client is informed automatically.
The new app state.
Changes the controller state. Every controller client is informed automatically.
The new controller state.
Changes the player state. Every player client is informed automatically.
The new player state.
Generated using TypeDoc
Typesafe way of using the JS-based State Managers from soundworks on server side. A server can ...