Handling SSE (Server test envent) in a test

Hello everyone,
I have an url to a SSE server to wich i can subscribe. The idea is to use it to test token expiration and other events the server could send.

I would like to know what is the best way to handle SSE in robotframework ?
Is there any specific library made for it ? (i couldnt find any)
Should i use websocket ?

I never really played with SSE before
Thank you if you have any suggestion :slight_smile:

This thread has rather old code (Python 3.4) but it’s probably still usable are a reference implementation for a Python client that subscribes to an SSE server.
node.js - Why is the python client not receiving SSE events? - Stack Overflow