function broadcastChatMessage
broadcastChatMessage(
message: ChatMessage,
nonce?: string
): void

Sends chat_message to every signed-in socket, the sender's included. nonce comes from the sender's chat_send, and lets it swap its pending copy for the message.

Parameters

message: ChatMessage
optional
nonce: string

Return Type

void

Usage

import { broadcastChatMessage } from "api/services/ws-service.ts";