code: function getStrForReadyState ( readyState ) {
      var state = "";
      switch ( readyState ) {
          case WS.CONNECTING: state = "Connecting"; break;
          case WS.OPEN: state = "Open"; break;
          case WS.CLOSING: state = "Closing"; break;
          case WS.CLOSED: state = "Closed"; break;
      }
      return state;
  }
docs: # Utils