redesigned WebSocket message testing