notification::sse::unsubscribe (private)

 notification::sse::unsubscribe channel subscription_id

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

Unsubscribe a channel from notifications.

Parameters:
channel (required)
subscription_id (required)

Partial Call Graph (max 5 caller/called nodes):
notification::sse::send notification::sse::send (public) notification::sse::unsubscribe notification::sse::unsubscribe notification::sse::send->notification::sse::unsubscribe notification::sweep::cleanup_sse_subscriptions notification::sweep::cleanup_sse_subscriptions (private) notification::sweep::cleanup_sse_subscriptions->notification::sse::unsubscribe

Testcases:
No testcase defined.
Source code:
        ns_log notice  notification::sse::unsubscribe  $subscription_id  $channel

        if {[nsv_get ::notification::sse channels-$subscription_id channels]} {
            ns_mutex eval [nsv_get ::notification::sse subscription_mutex] {
                set idx [lsearch -exact $channels $channel]
                nsv_set ::notification::sse channels-$subscription_id  [lreplace $channels $idx $idx]
            }
        }
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: