xo::mr::bgdelivery proc subscribe (public)

 xo::mr::bgdelivery[i] subscribe [ -initmsg initmsg ] [ -mode mode ] key

Defined in packages/xotcl-core/tcl/message-relay-procs.tcl

Subscribe to a messaging service using bgdelivery as the low level transport.

Switches:
-initmsg (optional)
-mode (optional, defaults to "default")
Parameters:
key (required)

Testcases:
No testcase defined.
Source code:
#
# Subscribe to a messaging service using bgdelivery as the low
# level transport.
#
ns_log notice "#### [self] subscribe <$key> mode <$mode>"
set ch [ns_conn channel]
thread::transfer [::bgdelivery get_tid] $ch
# ::bgdelivery do ::Subscriber sweep $key
::bgdelivery do ::Subscriber new  -channel $ch -key $key  -user_id [ad_conn user_id] -mode $mode  -start_of_page [:start_of_page $mode]
XQL Not present:
Generic, PostgreSQL, Oracle
[ hide source ] | [ make this the default ]
Show another procedure: