mindflayer / python-mocket

a socket mock framework - for all kinds of socket animals, web-clients included
BSD 3-Clause "New" or "Revised" License
284 stars 45 forks source link

server send events #243

Open piranna opened 3 months ago

piranna commented 3 months ago

I would like to test Server-Send Events, not sure if it should be added to the HTTP animal or an extension of it. Basically, it's a regular HTTP connection that it's left open and server keeps sending data to it at the same time is being generated, sort of streaming. Any posibility to be added as an animal?

mindflayer commented 3 months ago

I don't believe that having a socket that is left open for a while would be an issue, but I may be wrong. I haven't spent time on trying to make websockets work in ages.

Do you have a non-working example using Mocket? I mean: let's start from what works today and whatnot.

piranna commented 3 months ago

No, i don't have an example, didn't tried It yet.

mindflayer commented 2 months ago

Hi @piranna, are you considering helping with this, or it was just a feature request? I am asking this because I believe I won't be able to help with that if it's everything on me.

piranna commented 2 months ago

I forgot on that. I could help, but we are out of free time at work. I could help solving doubts by the moment.