exokitxr / exokit

Native VR/AR/XR engine for JavaScript 🦖
MIT License
997 stars 117 forks source link

EventSource #685

Open halvves opened 5 years ago

halvves commented 5 years ago

is there any planned support for sever-sent events?

https://developer.mozilla.org/en-US/docs/Web/API/EventSource

avaer commented 5 years ago

Since Exokit is just a mode module, it should be painless to plug in something like https://www.npmjs.com/package/eventsource, and it is the intent to support it.

To more directly answer the question, this was not in the plans before this issue was filed — thanks!

avaer commented 5 years ago

Did you have a specific use case or library usage of EventSource in mind?

halvves commented 5 years ago

i've mainly been using sse for visualizing live server activity etc... (like a very simple one way websocket)

i have no problem polyfilling for now, but native support would be nice eventually. thanks for the quick reply!