Update protocol.md with doc on socket messaging