createWebSocket(destination) {
    var WebSocket = require('../util').WebSocket;

    if (!WebSocket)
      console.warn('optional websocket module is not installed, therefore realtime communication is not available.');

    return new WebSocket(destination);
  }
/**
   * Creates a new web socket connection for the given destination
   * @param {string} destination The destination to connect to
   * @return {WebSocket} a new WebSocket instance
   * @abstract
   */
Creates a new web socket connection for the given destination
@param {string} destination The destination to connect to
@return {WebSocket} a new WebSocket instance
@abstract
Creates a new web socket connection for the given destination @param { string } destination The destination to connect to @return { WebSocket } a new WebSocket instance @abstract
createWebSocket(destination) {
    var WebSocket = require('../util').WebSocket;
    if (!WebSocket)
      console.warn('optional websocket module is not installed, therefore realtime communication is not available.');
    return new WebSocket(destination);
  }
createWebSocket ( destination ) { var WebSocket = require ( '../util' ) . WebSocket ; if ( ! WebSocket ) console . warn ( 'optional websocket module is not installed, therefore realtime communication is not available.' ) ; return new WebSocket ( destination ) ; }
Creates a new web socket connection for the given destination
 @param {string} destination The destination to connect to
 @return {WebSocket} a new WebSocket instance
 @abstract
Creates a new web socket connection for the given destination @param { string } destination The destination to connect to @return { WebSocket } a new WebSocket instance @abstract