Adding some method to verify WebSocket connectivity.