<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 send_event(self, con, name, payload):
 """Send an event to a client connection. This method will push an event message to the client with the given name and payload. You need to have access to the the ``connection`` object for the client, which is only available once the client has connected and passed to self.prepare_conn(connection). Args: con (websockets.Connection):
 The connection to use to send the event. name (str):
 The name of the event to send. payload (object):
 The msgpack-serializable object so send as the event's payload. """


        message = dict(type="event", name=name, payload=payload)
        encoded = pack(message)
        await con.send(encoded)