\n"
# }
# return $result
# }
@@ -81,17 +81,17 @@
#
if {[info commands ::thread::mutex] ne "" &&
![catch {ns_conn contentsentlength}]} {
- #
+ #
# scripted streaming should work everywhere
- #
+ #
set mode scripted-streaming
if {![regexp msie|opera [string tolower [ns_set get [ns_conn headers] User-Agent]]]} {
- # Explorer doesn't expose partial response until request state != 4, while Opera fires
- # onreadystateevent only once. For this reason, for every broser except them, we could
- # use the nice mode without the spinning load indicator.
- #
- set mode streaming
- }
+ # Explorer doesn't expose partial response until request state != 4, while Opera fires
+ # onreadystateevent only once. For this reason, for every broser except them, we could
+ # use the nice mode without the spinning load indicator.
+ #
+ set mode streaming
+ }
}
my log "--chat mode $mode"
}
@@ -116,7 +116,7 @@
set subscribe_url ${path}ajax/chat?m=subscribe&$context
}
default {
- error "mode $mode unknown, valid are: polling, streaming and scripted-streaming"
+ error "mode $mode unknown, valid are: polling, streaming and scripted-streaming"
}
}
set send_url ${path}ajax/chat?m=add_msg&$context&msg=
@@ -156,10 +156,10 @@
streaming {
- ::xowiki::Chat create c1 -destroy_on_cleanup -chat_id $chat_id -session_id $session_id -mode $mode
- set r [ns_urldecode [c1 get_all]]
- regsub -all {<[/]?div[^>]*>} $r "" r
- return "\
+ ::xowiki::Chat create c1 -destroy_on_cleanup -chat_id $chat_id -session_id $session_id -mode $mode
+ set r [ns_urldecode [c1 get_all]]
+ regsub -all {<[/]?div[^>]*>} $r "" r
+ return "\