class WebSocket::Driver

def start

def start
  return false unless @ready_state == 0
  response = handshake_response
  return false unless response
  @socket.write(Driver.encode(response, :binary))
  open unless @stage == -1
  true
end