MCPcopy Create free account
hub / github.com/hydro-dev/Hydro / wsHandlerMixin

Method wsHandlerMixin

framework/framework/server.ts:903–905  ·  view source on GitHub ↗
(MixinClass: Partial<ConnectionHandler> | ((s: ConnectionHandler) => Partial<ConnectionHandler>))

Source from the content-addressed store, hash-verified

901 }
902
903 public wsHandlerMixin(MixinClass: Partial<ConnectionHandler> | ((s: ConnectionHandler) => Partial<ConnectionHandler>)) {
904 return this._applyMixin(ConnectionHandler, MixinClass);
905 }
906
907 public registerRenderer(name: string, func: Renderer) {
908 if (this.renderers[name]) logger.warn('Renderer %s already exists.', name);

Callers 1

applyFunction · 0.80

Calls 1

_applyMixinMethod · 0.95

Tested by

no test coverage detected