Simple utils for testing websocket connections.