Multicasting

Everything you need to know about multicasting

Standard connection are kept alive until the Client times out and they are limit up to one per server

Multicasting allows you to have multiple clients connected to the server and making requests at the same time. This feature is enabled by default!

Routes are have enabled multicast by default!

This route will be available only for standard connections

@Server.route(multicast=False)
async def get_user_data(self, data: ClientPayload) -> Dict:
    user = self.bot.get_user(data.user_id)
    return user._to_minimal_user_json()

Ad

Last updated