Internal
Minimal interface for event registries so that RpcServer can participate in event registration without importing from rpc-websocket-listener.ts (which would create a circular dependency).
rpc-websocket-listener.ts
Optional
Remove all event registrations for the given handler (e.g. when a websocket closes)
Minimal interface for event registries so that RpcServer can participate in event registration without importing from
rpc-websocket-listener.ts(which would create a circular dependency).