vue-native-websocket | native websocket with vuex integration | Websocket library
kandi X-RAY | vue-native-websocket Summary
kandi X-RAY | vue-native-websocket Summary
native websocket with vuex integration
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
- return an object
- call function
- create a new object
vue-native-websocket Key Features
vue-native-websocket Examples and Code Snippets
Community Discussions
Trending Discussions on vue-native-websocket
QUESTION
Working on socket.io for the first time and trying to get it up and going, I can make the request and I have the server up and going, here is the server in node.
...ANSWER
Answered 2020-Feb-22 at 01:55Well... the issue is that I'm using vue-native-websocket
Socket.io is NOT a native websocket handler and adds extra header information which was lacking apparently. I switches to just using ws
in node and it works fine.
From the Socket.io docs.
Socket.IO is NOT a WebSocket implementation. Although Socket.IO indeed uses WebSocket as a transport when possible, it adds some metadata to each packet: the packet type, the namespace and the packet id when a message acknowledgement is needed. That is why a WebSocket client will not be able to successfully connect to a Socket.IO server, and a Socket.IO client will not be able to connect to a WebSocket server either.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vue-native-websocket
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page