Sanic-testing websockets

Hi. I try to use sanic-testing to test Sanic application. With http requests all is good, i can send requests and take responses, using SanicASGITestClient. But how can i test websocket connections with sanic-testing? Is it possible to get websocket object from SanicASGITestClient somehow?

Yes, the same way that you test any other endpoints should work.

You can see how Sanic does it internally here: https://github.com/sanic-org/sanic/blob/392a4973663631d011bd147a97347fb442d5a532/tests/test_routes.py#L655