src/smart-wss.js
/**
   * Sends the data if the socket is currently connected.
   * Otherwise the consumer needs to retry to send the information
   * when the socket is connected.
   */
Sends the data if the socket is currently connected.
Otherwise the consumer needs to retry to send the information
when the socket is connected.
Sends the data if the socket is currently connected . Otherwise the consumer needs to retry to send the information when the socket is connected .
send(data) {
    if (this._connected) {
      try {
        this._wss.send(data);
      } catch (e) {
        this.emit("error", e);
      }
    }
  }
send ( data ) { if ( this . _connected ) { try { this . _wss . send ( data ) ; } catch ( e ) { this . emit ( "error" , e ) ; } } }
Sends the data if the socket is currently connected.
Sends the data if the socket is currently connected .