src/PubConnection.js
function disconnect () {
    _connectingMaster = null
    if (_socket) {
      _socket.close()
      _socket = null
      debug('disconnected')
      connection.emit('disconnect')
    }
    return connection
  }
function disconnect () {
    _connectingMaster = null
    if (_socket) {
      _socket.close()
      _socket = null
      debug('disconnected')
      connection.emit('disconnect')
    }
    return connection
  }
function disconnect ( ) { _connectingMaster = null if ( _socket ) { _socket . close ( ) _socket = null debug ( 'disconnected' ) connection . emit ( 'disconnect' ) } return connection }
if present, closes the pub socket
@return {object} the publishConnection instance
if present closes the pub socket