Use emitNet function when you want to trigger an event from the client to the server.
You need to declare the event on the server with onNet first.
function emitNet(eventName: string, ...args?: any ) => void
// No arg
emitNet("foo:killPatrickForMe");
// With args
emitNet("foo:killThisGuyForMe", 2);