13 lines
349 B
Ruby
13 lines
349 B
Ruby
module JsxcHelper
|
|
def get_bosh_endpoint
|
|
port = AppConfig.chat.server.bosh.port
|
|
bind = AppConfig.chat.server.bosh.bind
|
|
host = AppConfig.pod_uri.host
|
|
scheme = AppConfig.pod_uri.scheme
|
|
|
|
unless AppConfig.chat.server.bosh.proxy?
|
|
return "http://#{host}:#{port}#{bind}"
|
|
end
|
|
return "#{scheme}://#{host}#{bind}"
|
|
end
|
|
end
|