Code for Micropython and Websockets?

Has anybody some code to get data via websockets from Micropython? I tried a lot of things but cant get longer than Home Assistant saying “ECONNRESET”
Any tips?

Plus plenty of google results.

Thanks, that link gave some leads. Now I am at getting “ECONNABORTED”, I guess I must send something more.