update messagecount with websockets