MCPcopy
hub / github.com/partykit/partykit / invokeOnMessage

Method invokeOnMessage

packages/partykit/facade/source.ts:687–693  ·  view source on GitHub ↗
(
      connection: Party.Connection,
      msg: string | ArrayBuffer | ArrayBufferView
    )

Source from the content-addressed store, hash-verified

685 }
686
687 async invokeOnMessage(
688 connection: Party.Connection,
689 msg: string | ArrayBuffer | ArrayBufferView
690 ) {
691 assert(this.worker, "[onMessage] Worker not initialized.");
692 return this.worker.onMessage(msg, connection);
693 }
694
695 async alarm() {
696 if (!this.worker) {

Callers 2

webSocketMessageMethod · 0.80

Calls 2

assertFunction · 0.70
onMessageMethod · 0.45

Tested by

no test coverage detected