class WebSocket::Driver::Hybi

def fail(type, message)

def fail(type, message)
  return if @ready_state > 1
  shutdown(ERRORS[type], message, true)
end