subscribe.tcl

Open an EventSource on this URL to receive all SSE notifications you have subscribed to.

Location:
/packages/notifications/www/sse/subscribe.tcl
See Also:

Related Files

[ hide source ] | [ make this the default ]

File Contents

ad_page_contract {

    Open an EventSource on this URL to receive all SSE notifications
    you have subscribed to.

    @see notification::sse::send
    @see https://developer.mozilla.org/en-US/docs/Web/API/Server-sent_events/Using_server-sent_events
}

::notification::sse::subscribe [ad_conn user_id]