{"action":"opened","issue":{"url":"https://api.github.com/repos/shokai/semirara/issues/29","repository_url":"https://api.github.com/repos/shokai/semirara","labels_url":"https://api.github.com/repos/shokai/semirara/issues/29/labels{/name}","comments_url":"https://api.github.com/repos/shokai/semirara/issues/29/comments","events_url":"https://api.github.com/repos/shokai/semirara/issues/29/events","html_url":"https://github.com/shokai/semirara/issues/29","id":150290858,"number":29,"title":"page:lines受信後にeditline位置調整","user":{"login":"shokai","id":34204,"avatar_url":"https://avatars.githubusercontent.com/u/34204?v=3","gravatar_id":"","url":"https://api.github.com/users/shokai","html_url":"https://github.com/shokai","followers_url":"https://api.github.com/users/shokai/followers","following_url":"https://api.github.com/users/shokai/following{/other_user}","gists_url":"https://api.github.com/users/shokai/gists{/gist_id}","starred_url":"https://api.github.com/users/shokai/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shokai/subscriptions","organizations_url":"https://api.github.com/users/shokai/orgs","repos_url":"https://api.github.com/users/shokai/repos","events_url":"https://api.github.com/users/shokai/events{/privacy}","received_events_url":"https://api.github.com/users/shokai/received_events","type":"User","site_admin":false},"labels":[{"url":"https://api.github.com/repos/shokai/semirara/labels/enhancement","name":"enhancement","color":"84b6eb"}],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-04-22T07:18:59Z","updated_at":"2016-04-22T07:18:59Z","closed_at":null,"body":"同じページを開いている別clientが編集した時に、editlineをずらす必要がある\r\n\r\n\r\n## 実装案1: 行にIDつけてeditline移動を検知\r\n- 行にIDを付けておく\r\n  - client側にて、`insertNewLine`か`updateLine`した時に付ける\r\n  - IDは画面に表示する必要はない\r\n- 当然それは同じページを開いている相手にも保存される\r\n- 行データ受信時に、行のIDを見てeditlineを修正する\r\n  - socket.ioから受信した後の`page:lines` actionをdispatchした前後を見るmiddlewareを実装すればいい"}}