     atom.views.getView(@editor).setAttribute('id', 'pusht')
 
     buffer = @buffer = @editor.buffer
-
-    # $('atom-text-editor#pusht::shadow .line-number.cursor-line').addClass(@markerColour)
-    # @syncMarker()
 
     @pusher = new Pusher @app_key,
       authTransport: 'client'

  markRows: (rows, colour) ->
    _.each rows, (row) => @addMarker(row, colour)

  clearMarkers: (colour)->
    $("atom-text-editor#pusht::shadow .line-number").each (index, line) =>
      $(line).removeClass(colour)

  addMarker: (line, colour) ->
    $("atom-text-editor#pusht::shadow .line-number-#{line}").addClass(colour)

  shareCurrentFile: (buffer)->
    currentFile = buffer.getText()
    return if currentFile.length is 0
    size = Buffer.byteLength(currentFile, 'utf8')

      @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}
