Skip to content

Latest commit

 

History

History
53 lines (37 loc) · 1 KB

File metadata and controls

53 lines (37 loc) · 1 KB

broadcast

Push a message to all clients in a websocket room.

Kind Attribute
Since 0.1.0

Syntax

broadcast to :<room> [fragment <name>]

Description

Renders the named fragment server-side and sends the resulting HTML to all socket clients subscribed to the room.

Used in

Examples

Broadcast a chat fragment

socket /chat/:room
  on message
    query: INSERT INTO message ...
    broadcast to :room fragment chat-message

See also

Provenance

Spec last touched 18cf488 (2026-05-20)
Source last touched af278bb (2026-05-20)
Source files internal/parser/parser.go