Mercurial > prosody-modules
comparison mod_http_altconnect/mod_http_altconnect.lua @ 1323:c84ff82658cb
Update the namespaces in http_altconnect to match published XEP-0156
author | Lance Stout <lancestout@gmail.com> |
---|---|
date | Wed, 26 Feb 2014 13:08:47 -0800 |
parents | 1ac28a953e5f |
children | 853a382c9bd6 |
comparison
equal
deleted
inserted
replaced
1322:bf6796061037 | 1323:c84ff82658cb |
---|---|
10 local host_modules = hosts[module.host].modules; | 10 local host_modules = hosts[module.host].modules; |
11 | 11 |
12 local function get_supported() | 12 local function get_supported() |
13 local uris = array(); | 13 local uris = array(); |
14 if host_modules["bosh"] then | 14 if host_modules["bosh"] then |
15 uris:push({ rel = "urn:xmpp:altconnect:bosh", href = module:http_url("bosh", "/http-bind") }); | 15 uris:push({ rel = "urn:xmpp:alt-connections:xbosh", href = module:http_url("bosh", "/http-bind") }); |
16 end | 16 end |
17 if host_modules["websocket"] then | 17 if host_modules["websocket"] then |
18 uris:push({ rel = "urn:xmpp:altconnect:websocket", href = module:http_url("websocket", "xmpp-websocket"):gsub("^http", "ws") }); | 18 uris:push({ rel = "urn:xmpp:alt-connections:websocket", href = module:http_url("websocket", "xmpp-websocket"):gsub("^http", "ws") }); |
19 end | 19 end |
20 return uris; | 20 return uris; |
21 end | 21 end |
22 | 22 |
23 | 23 |