Commit 496e8b0c11775c552153e296ec859db1fbc5d7d1
Committed by
Antonio Terceiro
1 parent
2d30ae0d
Exists in
master
and in
22 other branches
Changing XMPP connection parameters
Showing
1 changed file
with
2 additions
and
1 deletions
Show diff stats
app/controllers/public/chat_controller.rb
... | ... | @@ -7,7 +7,8 @@ class ChatController < PublicController |
7 | 7 | login = current_user.jid |
8 | 8 | password = current_user.crypted_password |
9 | 9 | begin |
10 | - jid, sid, rid = RubyBOSH.initialize_session(login, password, "http://#{environment.default_hostname}/http-bind") | |
10 | + jid, sid, rid = RubyBOSH.initialize_session(login, password, "http://#{environment.default_hostname}/http-bind", | |
11 | + :wait => 30, :hold => 1, :window => 5) | |
11 | 12 | session_data = { :jid => jid, :sid => sid, :rid => rid } |
12 | 13 | render :text => session_data.to_json, :layout => false, :content_type => 'application/javascript' |
13 | 14 | rescue | ... | ... |