This is not a functional change, just an example application of the current code in https://github.com/PaimaStudios/paima-engine/pull/409 . It's also possible it may not compile, since I'm using local dependencies.
I defined an overloaded event to just to show how it looks, but both events are emitted at the same time (which could be a valid use-case though)
The events table looks something like this:
The joined lobby event was never emitted so it's not there.
The registered_event table looks like this:
The output of mqtt subscribe -h 127.0.0.1 -p 8883 -q 2 -l ws -t '#' -v looks something like this for example:
This is not a functional change, just an example application of the current code in https://github.com/PaimaStudios/paima-engine/pull/409 . It's also possible it may not compile, since I'm using local dependencies.
I defined an overloaded event to just to show how it looks, but both events are emitted at the same time (which could be a valid use-case though)
The events table looks something like this:
The joined lobby event was never emitted so it's not there.
The registered_event table looks like this:
The output of
mqtt subscribe -h 127.0.0.1 -p 8883 -q 2 -l ws -t '#' -v
looks something like this for example: