Emit a global event on the server side using functions from the client side.