method HTTPServer.prototype.publish
HTTPServer.prototype.publish(data: string): void

Broadcasts a message to all connected WebSocket clients.

Parameters

data: string

Return Type

void

Usage

import HTTPServer from "lib/servers/http.ts";