Game state server constructor.
(Optional) Path where game state event data from the client is received, defaults to "/".
(Optional) Whether to log more information, defaults to false
.
Private
Readonly
debugPrivate
Readonly
urlPrivate
emitPrivate
feedPrivate
handlePrivate
isStarts the game state integration server on the specified host and port. This should match the game state integration configuration in the DotA 2 game client.
(Optional) Port number, defaults to 9001.
(Optional) Host name, defaults to "127.0.0.1".
Register a handler for ObserverGameStateEvent.
Listener function that processes ObserverGameStateEvent data.
Register a handler for PlayerGameStateEvent.
Listener function that processes PlayerGameStateEvent data.
Private
parsePrivate
parseGenerated using TypeDoc
Handles game state events from the DotA 2 game client and exposes functions to listen to specific in-game events. The game client reports either player or observer events depending on if the current user is playing or observing a game. The player game state event payload will be a subset of the observable game state, mostly including global map and current play state.