method HTTPServer.prototype.publish HTTPServer.prototype.publish(data: string): void Broadcasts a message to all connected WebSocket clients. const server = new HTTPServer(); server.publish(JSON.stringify({ event: 'refresh' })); // zero clients connected — a no-op await server.close(); Parameters data: string Return Type void