Commands are now submitted under one event name, not multiple.
Repsonses are returned under multiple event names on success as well as one event name on failure.
Updates the TS side to use the new event names.
Moves UserInput and the logic for replying to events to another file, for tidiness.
Command dispatch is now handled in one large match statement.
Reduces use of expect overall.
There is now a location in the connect function to pass errors back to the frontend now (see TODO).
Changes normal messages to use an empty command name instead of "privmsg".
Requires testing.
Commands are now submitted under one event name, not multiple. Repsonses are returned under multiple event names on success as well as one event name on failure. Updates the TS side to use the new event names.
Moves UserInput and the logic for replying to events to another file, for tidiness. Command dispatch is now handled in one large match statement.
Reduces use of
expect
overall. There is now a location in the connect function to pass errors back to the frontend now (see TODO).Changes normal messages to use an empty command name instead of "privmsg".