swmlUserEvent
Send a custom user event through SWML. Events are delivered to connected clients in real time, commonly used to drive UI updates in interactive applications (e.g., updating a scoreboard, dealing cards, showing status).
Parameters
eventData
Object containing the event payload. Include a "type" key to help
clients distinguish between different event types.
Returns
FunctionResult — this, for chaining.