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):
- 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_abortXQL Not present: Generic, PostgreSQL, Oracle