notification::sse::subscribe (private)

 notification::sse::subscribe subscription_id

Defined in packages/notifications/tcl/notification-sse-procs.tcl

Subscribe the current connection channel to notifications. This will detach the connection channel from the thread and abort the script.

Parameters:
subscription_id (required)

Partial Call Graph (max 5 caller/called nodes):
packages/notifications/www/sse/subscribe.tcl packages/notifications/ www/sse/subscribe.tcl notification::sse::subscribe notification::sse::subscribe packages/notifications/www/sse/subscribe.tcl->notification::sse::subscribe ad_script_abort ad_script_abort (public) notification::sse::subscribe->ad_script_abort

Testcases:
No testcase defined.
Source code:
        set channel [ns_connchan detach]
        ns_connchan write $channel [string cat  "HTTP/1.1 200 OK\r\n"  "Cache-Control: no-cache\r\n"  "X-Accel-Buffering': no\r\n"  "Content-type: text/event-stream\r\n"  "\r\n"]
        nsv_lappend  ::notification::sse  channels-$subscription_id  $channel
        ad_script_abort
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: