implement chat user count and unread message count via global websocket.