Fix websocket broadcast bug.
Merge branch 'web-rewrite'