     @send
       name: "subscribe"
       args:
-        key: "kite.start.#{KD.nick()}"
+        key: "#{SubscribePrefix}.#{KD.nick()}"
 
   send: (data) ->
     @ready =>

    @subscribe()

  onClose: (evt) ->
    log "Disconnected from #{@addr}, trying to reconnect"
    @readyState = CLOSED

  onMessage: (evt) ->

  [NOTREADY, READY, CLOSED] = [0,1,3]

  kontrolEndpoint = "http://#{KD.config.newkontrol.host}:#{KD.config.newkontrol.port}/query"
  SubscribePrefix = "kite"

  constructor: (options)->
    super
