design eventhandler mechanism
In order to allow developers to define custom eventhandlers (that trigger data payloads to the websocket server) we should design a generic api.
const pio = PRIMED(...);
pio.track('click', *args); // *args contain extra properties to be sent along with the data payload