       @sendGrammar()
       @syncGrammars()
       @shareCurrentFile(buffer)
+      # @addMarker 0, data.colour
 
 
     @pairingChannel.bind 'client-grammar-sync', (syntax) =>

    @pairingChannel = @pusher.subscribe("presence-session-#{@sessionId}")

    @pairingChannel.bind 'pusher:subscription_succeeded', (members) =>

      @pairingChannel.trigger 'client-joined', {colour: @markerColour}



    @pairingChannel.trigger 'client-grammar-sync', grammar.scopeName

  syncMarker: ->
    target = $('atom-text-editor#pusht::shadow .line-numbers')[0]
    console.log target
    observer = new MutationObserver (mutations) =>
      newLineNumber = @editor.getCursorBufferPosition().toArray()[0]
      @clearMyMarkers()
      @addMarker(newLineNumber, @markerColour)

    config = {attributes: true, childList: true, characterData: true}

    observer.observe target, config
  
    @editor.onDidChangeCursorPosition (event) =>
      if event.newBufferPosition.toArray()[0] isnt event.oldBufferPosition.toArray()[0]
        newLineNumber = event.newBufferPosition.toArray()[0]
