A comma seperated list of command objects to be added to the game.
Broadcast a message to all connected sockets.
The message to broadcast
Any data to be sent to the client
Compare a hashed string to it's plantext counterpart.
The plan text representation of the hashed string
Hashed string
Force a socket to execute a given command using the supplied context object.
The context object to b e passed to the command
The string to trigger the wanted command.
Hash a string.
The password to hash
Load a file from a given path.
Tge path to the file.
Load all js files from a directory.
The path to the files to handle.
Send a message to a client.
The ID of the socket connection to send the message to.
The message to send.
Any data to be sent with the message to the client.
set a list of flags, and flag data.
The list of flags to add
Any related date to be set with the new flags
The flags expression to be evaluated.
Create a new JWT
The ID of the object to send in the token.
The game secret for signing JWTs
Validate a JWT
The toeken to validate
The secret to use as a key.
Generated using TypeDoc
Add a list of command objects to the game.
addCmd({ name: "test", pattern: "test", flags: "connected", render: (ctx) => await end(ctx.id, "This is a test!") })