connect(params = {}, callbacks = {}) {
    this.log_(`Coyote.connect: connecting ${this.url}`);
    this.socket = new Phoenix.Socket(this.URL, {params});
    this.socket.connect();
    this.socket.onOpen(callbacks.onOpen);
    this.socket.onError(callbacks.onError);
    this.socket.onClose(callbacks.onClose);
  }
/**
  * Initialize and connects to a Phoenix.Socket.
  * @param {object} args - Connection parameters passed to Phoenix socket.
  * @param {object} callbacks - Callbacks collection for socket.
  */
Initialize and connects to a Phoenix.Socket.
@param {object} args - Connection parameters passed to Phoenix socket.
@param {object} callbacks - Callbacks collection for socket.
Initialize and connects to a Phoenix . Socket . @param { object } args - Connection parameters passed to Phoenix socket . @param { object } callbacks - Callbacks collection for socket .
connect(params = {}, callbacks = {}) {
    this.log_(`Coyote.connect: connecting ${this.url}`);
    this.socket = new Phoenix.Socket(this.URL, {params});
    this.socket.connect();
    this.socket.onOpen(callbacks.onOpen);
    this.socket.onError(callbacks.onError);
    this.socket.onClose(callbacks.onClose);
  }
connect ( params = { } , callbacks = { } ) { this . log_ ( ` ${ this . url } ` ) ; this . socket = new Phoenix . Socket ( this . URL , { params } ) ; this . socket . connect ( ) ; this . socket . onOpen ( callbacks . onOpen ) ; this . socket . onError ( callbacks . onError ) ; this . socket . onClose ( callbacks . onClose ) ; }
Initialize and connects to a Phoenix.Socket.
Initialize and connects to a Phoenix . Socket .