Comments (5)
Released in v2.3.0!
Sorry for the delay, I recently moved countries. :)
from vue-sse.
I could definitely include a polyfillOptions: { ... }
option that gets passed directly to the polyfill's constructor quite easily.
The problem is that it would only apply when { polyfill: true }
is set, and the browser's native EventSource does not exist. It would require a { forcePolyfill: true }
option to tell me to forcibly set the browser's native EventSource to the polyfill (to not break backwards compatibility, since the polyfill only gets set when there is no native).
So a minimal configuration for this to work reliably would look like this:
Vue.use(VueSSE, {
polyfill: true,
polyfillOptions: { /* ... */ },
forcePolyfill: true,
});
If that sounds reasonable, then it shouldn't be a hard addition.
from vue-sse.
Is this feature still in development? Would love to have it!
from vue-sse.
@icheered Hi!
A combination of lack of skills and time caused that I didn't even started working on it. Bad... I forked this repo and somewhat integrated the feature, but definitely it doesn't worth a share.
I'd like to put a highlight on your now closed ticket as relevant #24.
from vue-sse.
Awesome @tserkov, Thanks for your help!
from vue-sse.
Related Issues (20)
- Documentation is out of date for v2 HOT 2
- Is v2 branch usable? HOT 2
- Feature: Add "interceptor" HOT 1
- Feature: Vue 3 support HOT 1
- Allow passing of custom EventSource or allow HTTP headers. HOT 1
- Add CONTRIBUTING.md
- How we can use this with Nuxtjs HOT 2
- Client initialization breaks when using forcePolyfill HOT 1
- EventSource undefined when using Polyfill
- Return type of SSEClient methods is wrong in Typescript interface - should not be void HOT 1
- Message Last-Event-Id missed HOT 1
- How to supress no activity error HOT 4
- Add option to define the HTTP method HOT 2
- sse.once(event,fn), fn triggered multiple times
- Vue 3 package dependency compatibility HOT 8
- Vue 3? HOT 3
- 返回类型没有随着设置而改变
- i need help,thanks HOT 2
- how to use headers HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vue-sse.