Fix edit-note socket event
Merge pull request #29 from tangmi/issue-26-sockets

closes #26