Pita/etherpad-lite — Issue #198: websockets doesn't work anymore
Author: holtzermann17
Created: 2011-11-13 17:30:55+00:00
State: open

Whereas the earliest versions of etherpad-lite used websockets as the only way to connect, this has been replaced with XHR in recent versions. And while it is possible to turn websockets back on, as discussed here,

http://groups.google.com/group/etherpad-dev/browse_thread/thread/8ae801a08f4d7b2e

Etherpad does not know how to use a websocket connection properly. It is possible to make socket.io emit a debugging message showing that the websocket is noticed:

[2011-11-08 13:25:30.054] [DEBUG] socket.io - websocket received data
packet ~m~145~m~~j~{"component":"pad","type":"CLIENT_READY","padId":"test","sessio nID":null,"password":null,"token":"t.TxK2u0ngazzJAbEiAwiV","protocolVersion ":2}

But this is different from the standard [INFO] message that Etherpad emits when an XHR client connects:

[2011-11-08 13:16:01.294] [INFO] message - from 3040558891793436223:
{"component":"pad","type":"CLIENT_READY","padId":"test","sessionID":null,"p assword":null,"token":"t.nozwcwFOQZYBU2I2zbDk","protocolVersion":2}