src/Node.js
function unsubscribe (channels) {
    if (!isArray(channels)) channels = [channels]
    if (!every(channels, isString)) throw new TypeError(`${_debugStr}: .unsubscribe([channels]) channels must be represented by strings`)

    channels.forEach(channel => {
      if (~internalChannels.indexOf(channel)) {
        console.warn(`${_debugStr} channel '${channel}' is used internally and you cannot unsubscribe from it.`)
        return
      }
      _subConnection.unsubscribe([channel])
    })
    return node
  }
function unsubscribe (channels) {
    if (!isArray(channels)) channels = [channels]
    if (!every(channels, isString)) throw new TypeError(`${_debugStr}: .unsubscribe([channels]) channels must be represented by strings`)

    channels.forEach(channel => {
      if (~internalChannels.indexOf(channel)) {
        console.warn(`${_debugStr} channel '${channel}' is used internally and you cannot unsubscribe from it.`)
        return
      }
      _subConnection.unsubscribe([channel])
    })
    return node
  }
function unsubscribe ( channels ) { if ( ! isArray ( channels ) ) channels = [ channels ] if ( ! every ( channels , isString ) ) throw new TypeError ( ` ${ _debugStr } ` ) channels . forEach ( channel => { if ( ~ internalChannels . indexOf ( channel ) ) { console . warn ( ` ${ _debugStr } ${ channel } ` ) return } _subConnection . unsubscribe ( [ channel ] ) } ) return node }
Unsubscribes the node from the provided channels
@param  {string|array<string>} channels
@return {object} node instance
Unsubscribes the node from the provided channels