 
   destroy: ->
     @s.close()
+
+  handleStreamNotify: (json)->
+    console.log 'handleStreamNotify:'
+    console.log json
+    switch json.params.event.kind
+      when 'BreakpointAdded'
+        console.log '----> A breakpoint was added'
+        # TODO
+      when 'PauseBreakpoint'
+        console.log '----> execution has stopped because a breakpoint was hit'
+        # TODO
+      else
+        console.log 'UNSUPPORTED stream type'
 
   getVM: -> return @vm
   getIsolates: -> return @isolates

# This is an implementation of _debugger that talks to the DartVM
# over websockets. _debugger is part of the internal atom repl.js
# package.

# .client.destroy
# .client.reqLookup(ref)

      "scriptId":"'+scriptId+'", \
      "line":'+req.line.toString()+' \
      },"id":"addbreakpoint"}'
    #console.log str
    @s.send str


