From 9f3f069321def036b93f6ab2b78d94ee088043c9 Mon Sep 17 00:00:00 2001 From: Ricardo Carrillo Cruz Date: Fri, 30 Jan 2015 14:35:29 +0000 Subject: [PATCH] Enable websockets transport on Etherpad This can enhance the user experience, as most modern web browsers are capable of using Websockets. Due to SocketIO fallback mechanism, if Websocket is not available the next transport in the list will be used, so this change would still work like before where Websockets is not possible. Please note that Apache must be able to pass thru websockets to the Etherpad nodejs server, the module mod_proxy_wstunnel is needed for that, but it's only available as a package for Apache 2.4. I will create another change for etherpad-dev that adds that module and sync up with infra root members to upgrade the server to Trusty (it comes with Apache 2.4, Precise still comes with 2.2). Change-Id: I30f425f7bf7dfeec1a2128e2caf7253459bccc21 --- templates/etherpad-lite_settings.json.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/etherpad-lite_settings.json.erb b/templates/etherpad-lite_settings.json.erb index 74f3522..d5effc9 100644 --- a/templates/etherpad-lite_settings.json.erb +++ b/templates/etherpad-lite_settings.json.erb @@ -72,7 +72,7 @@ */ // restrict socket.io transport methods - "socketTransportProtocols" : ["xhr-polling", "jsonp-polling", "htmlfile"], + "socketTransportProtocols" : ["websocket", "xhr-polling", "jsonp-polling", "htmlfile"], /* The log level we are using, can be: DEBUG, INFO, WARN, ERROR */ "loglevel": "INFO",