 
   disconnect: ->
     @pusher.disconnect()
+    @clearMarkers(@markerColour)
     @hidePanel()
 
   serialize: ->

        @editor.scrollToBufferPosition(oldRange.start)
        @addMarker oldRange.start.toArray()[0], data.colour
      else
        buffer.insert newRange.start, newText
        @editor.scrollToBufferPosition(newRange.start)
        @addMarker newRange.start.toArray()[0], data.colour

      triggerPush = true


      @pairingChannel.trigger 'client-change', {deletion: deletion, event: event, colour: @markerColour}

    @editor.onDidChangeSelectionRange (event) =>
      rows = event.newBufferRange.getRows()
      @pairingChannel.trigger 'client-text-select', {colour: @markerColour, rows: rows}

  receiveFriendInfo: (data) ->
    friendInfo = {colour: data.colour}
