lib/client/source/connectaSocket.js
function changeServer(url)
    {
        scope._redirectURL = url;
        if(scope._conn)
        {
            scope._conn.onopen     = null;
            scope._conn.onerror    = null;
            scope._conn.onclose    = null;
            scope._conn.onmessage  = null;
            scope._conn.close();
        }
        connect();
    }
function changeServer(url)
    {
        scope._redirectURL = url;
        if(scope._conn)
        {
            scope._conn.onopen     = null;
            scope._conn.onerror    = null;
            scope._conn.onclose    = null;
            scope._conn.onmessage  = null;
            scope._conn.close();
        }
        connect();
    }
function changeServer ( url ) { scope . _redirectURL = url ; if ( scope . _conn ) { scope . _conn . onopen = null ; scope . _conn . onerror = null ; scope . _conn . onclose = null ; scope . _conn . onmessage = null ; scope . _conn . close ( ) ; } connect ( ) ; }
switches server by given url
switches server by given url