Use emit
function when you want to trigger an event on the same client.
You need to declare the event on the client with on or onNet first.
function emit(eventName: string, ...args?: any ) => void
// No arg
emit("foo:gimmeAFrenchBread");
// With args
emit("foo:gimmeSomeFrenchBread", amount);