MCPcopy
hub / github.com/socketio/socket.io / publish

Function publish

packages/socket.io-adapter/lib/cluster-adapter.ts:675–683  ·  view source on GitHub ↗
(
    message: DistributiveOmit<ClusterMessage, "nsp" | "uid">,
  )

Source from the content-addressed store, hash-verified

673 }
674
675 protected publish(
676 message: DistributiveOmit<ClusterMessage, "nsp" | "uid">,
677 ): void {
678 debug("[%s] sending message %s", this.uid, message.type);
679
680 this.publishAndReturnOffset(message).catch((err) => {
681 debug("[%s] error while publishing message: %s", this.uid, err);
682 });
683 }
684
685 protected publishAndReturnOffset(
686 message: DistributiveOmit<ClusterMessage, "nsp" | "uid">,

Callers

nothing calls this directly

Calls 2

debugFunction · 0.85
publishMethod · 0.45

Tested by

no test coverage detected