Comments (17)
I second this, it should be called vue-socketio
or similar. People looking to use (or even make) a vue-websocket
plugin that utilises the native websocket would be disappointed. Either way I don't believe vue-websocket
is a good name for this package.
from vue-websocket.
The package name is kinda misleading then as native websocket is kinda different from socketio
from vue-websocket.
Sorry, but not. It's only working with socket.io
from vue-websocket.
Thanks for the head up @sam3d it's not your fault. I'm getting very frustrated, I've started using VueJs for a personnal project 2 weeks ago and so far it looks like only roadblocks ahead.
None of the tutorial I've followed worked for any project, or seldom. I've used modules where the start function isn't starting anything and most of the time when you link up in GH the usual answer is : provide a demo project if you want us to trust you that's an issue.
I'm not sure if I will ever recommend the VueJS ecosystem.... Or am I alone in the universe?
from vue-websocket.
Please rename this github repo to vue-socketio as this is very misleading. I was looking for a native browser JS websocket integration with vue, not socket.io.
from vue-websocket.
nope. that's why i gave up on this. if someone wants to fork it and make it native ws i'll test it out.
from vue-websocket.
How to use this websocket? There is no specific use
from vue-websocket.
I also wasted time with this library when i was looking for native websockets. By the way there is also https://github.com/MetinSeylan/Vue-Socket.io and https://github.com/nathantsoi/vue-native-websocket
from vue-websocket.
from vue-websocket.
I'm unlocking this issue so I can gather feedback.
It seems as though vue-websocket
will be this package name, and the owner isn't interested in changing it. So, end of discussion on that particular point I'm afraid.
However, I would like to introduce and supplement the socket.io
implementation with a native websockets implementation.
I wanted to see what public opinion was on this change, and whether or not it would be outside the scope of this project. I don't want to remove or break any functionality for those who do use this package for socket.io
. Looking forward to hearing your thoughts!
from vue-websocket.
I would be interested in native sockets instead of socket.io You could always fork it and make the change. vue-websocket-native
from vue-websocket.
The example doesn't even work 😞
from vue-websocket.
Apologies while I get up to speed, I've just taken over as the lead maintainer for a while.
I'll test out the example at some point in the next few days and update it
from vue-websocket.
@Nolaan you are probably alone in that universe. the VueJS ecosystem is perfectly fine, functional, and growing. If you're looking for a native websocket implementation, I suggest you to try going with simply just the websocket api documentation from https://developer.mozilla.org/en-US/docs/Web/API/WebSockets_API ; that's what I ended up doing.
from vue-websocket.
perfectly fine is a little bit meh especially when I think about backward compatibility and dependencies... But probably you're right, don't get me wrong I can communicate with my server over the dev console of Chrome/Firefox (using SSL) just the module won't connect.
from vue-websocket.
@Nolaan Thank you for saying that 🙂 I'm a huge fan of the Vue.js ecosystem - it's definitely still got its fair share of teething problems that's for sure, but on the whole it's actually growing up really well.
I'm sorry to hear you're getting frustrated getting into Vue, I totally get it. I updated the README not too long ago with other alternatives to using this package for native websockets, let me know if there's anything I can do!
from vue-websocket.
Vue eco-system may not be as extensive or mature as React, but between the two, it is easier for me to dive in to Vue to fix things, rather than wait for someone to implement the feature...
from vue-websocket.
Related Issues (16)
- vue-touch-keyboard HOT 1
- JWT token setting HOT 5
- Vuejs component cannot receive data HOT 2
- Setting secure: true in the Websockets options does not apply and gets set by default to false.
- Does this package support IE11?
- How to set option before connect but not in Vue.use ?
- How can I use both vue-websocket and vue-socket.io in a project? HOT 3
- How do I join a room ?
- Access-Control-Allow-Origin HOT 1
- is it can connect to other server
- Is it possible to use multiple prefixes in one Vue component? HOT 3
- how to use in html? HOT 2
- how to manually socket connect HOT 1
- can you please give a full demo? HOT 2
- Group name must be a valid unicode string containing only ASCII alphanumerics, hyphens, or periods. 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-websocket.