MCPcopy
hub / github.com/soketi/soketi / setAdapter

Method setAdapter

src/server.ts:490–497  ·  view source on GitHub ↗

* Set the adapter.

(instance: AdapterInterface)

Source from the content-addressed store, hash-verified

488 * Set the adapter.
489 */
490 setAdapter(instance: AdapterInterface): Promise<void> {
491 return new Promise(resolve => {
492 instance.init().then(() => {
493 this.adapter = instance;
494 resolve();
495 });
496 });
497 }
498
499 /**
500 * Set the metrics manager.

Callers 1

initializeDriversMethod · 0.95

Calls 1

initMethod · 0.65

Tested by

no test coverage detected