How to involve sanic websocket out of sanic?

Django has get_channel_layer(), then I could use Django channel out of it. For example, I use Django to fire up a background long-time process, the process could use Django channel layer to send message to front-end with real-time.
Does Sanic has similar feature? and how?

import django
os.environ.setdefault("DJANGO_SETTINGS_MODULE", "services.settings")

from channels.layers import get_channel_layer
from asgiref.sync import async_to_sync

channel_layer = get_channel_layer()

async_to_sync(channel_layer.group_send)(group, message)


I’ll be honest that I don’t know what you mean by “our of sanic”, or what get_channel_layer does.

However, if you want to know about having websocket handlers with Sanic, it is super easy and straightforward since it is async based.

Take a look at the docs: Websockets | Sanic Framework