     if levelsWorkspaceManager.isActiveLevelDebuggable()
       currentPosition = levelsWorkspaceManager.getActiveTextEditorPosition()
       if breakpointManager.toggle currentPosition
-        @sendBreakpointAdded PositionUtils.fromPoint currentPosition
+        @socketChannel.sendMessage OutgoingMessageFactory.createAddBreakpointMessage PositionUtils.fromPoint currentPosition
       else
-        @sendBreakpointRemoved PositionUtils.fromPoint currentPosition
+        @socketChannel.sendMessage OutgoingMessageFactory.createRemoveBreakpointMessage PositionUtils.fromPoint currentPosition
     return
 
   removeAllBreakpoints: ->
     breakpointManager.removeAll()
-    @sendRemoveAllBreakpoints()
+    @socketChannel.sendMessage OutgoingMessageFactory.createRemoveAllBreakpointsMessage()
     return
 
   enableDisableAllBreakpoints: ->
     breakpointManager.flip()
     @sendEnableDisableAllBreakpoints()
-    @emitEnableDisableAllBreakpoints breakpointManager.getAreBreakpointsEnabled()
+    @emitter.emit 'enable-disable-all-breakpoints', breakpointManager.getAreBreakpointsEnabled()
     return
 
   runToNextBreakpoint: ->


  callStackFromString: (string) ->
    @callStack = CallStackFactory.fromString string
    @emitCallStackUpdate()
    return

  getCallStack: ->

    @positionMarker = levelsWorkspaceManager.addPositionMarker currentPosition

    @emitter.emit 'position-updated', currentPosition
    @emitStatusUpdate StatusUpdateEventFactory.createWaiting @isReplay

    levelsWorkspaceManager.getActiveTextEditor()?.scrollToBufferPosition PositionUtils.toPoint currentPosition
    return

  emitCallStackUpdated: ->
    @emitter.emit 'call-stack-updated'
    return

  emitVariableTableUpdated: ->
    @emitter.emit 'variable-table-updated'
    return

