bundles/org.eclipse.orion.client.collab/web/orion/collab/otAdapters.js
function(client, socket) {
        OrionSocketAdapter.call(this, client);

        var self = this;
        this.socket = socket;
        this.authenticated = false;

        // Register incoming message handler
        this.socket.addEventListener('message', function(e) {
            self._onMessage(JSON.parse(e.data));
        });
    }
function(client, socket) {
        OrionSocketAdapter.call(this, client);

        var self = this;
        this.socket = socket;
        this.authenticated = false;

        // Register incoming message handler
        this.socket.addEventListener('message', function(e) {
            self._onMessage(JSON.parse(e.data));
        });
    }
function ( client , socket ) { OrionSocketAdapter . call ( this , client ) ; var self = this ; this . socket = socket ; this . authenticated = false ; // Register incoming message handler this . socket . addEventListener ( 'message' , function ( e ) { self . _onMessage ( JSON . parse ( e . data ) ) ; } ) ; }
The socket adapter for OT using CollabSocket as the communitation socket

@class
@extends orion.collab.OrionSocketAdapter
@name orion.collab.OrionCollabSocketAdapter

@param {orion.collabClient.CollabClient} client
@param {orion.collabClient.CollabSocket} socket
The socket adapter for OT using CollabSocket as the communitation socket