<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 async def enable_events(self) -> asyncio.Task: """Connects to the websocket. Returns a listening task."""

        return await self._connection.ws_connect(
            on_message=self._ws_on_message, on_error=self._ws_on_error
        )