offServer
Callable
- offServer<K>(eventName: K, listener: (...args: Parameters<ICustomServerClientEvent[K]>) => void): void
- offServer<K>(eventName: Exclude<K, never>, listener: (...args: any[]) => void): void
- offServer(eventName: string, listener: (...args: any[]) => void): void
- offServer(listener: (eventName: string, ...args: any[]) => void): void
Type parameters
- K: never
Unsubscribes from a server event with the specified listener.
Remarks
Listener should be of the same reference as when event was subscribed to.