Gathering detailed insights and metrics for @wuild/vue-websocket
Gathering detailed insights and metrics for @wuild/vue-websocket
Gathering detailed insights and metrics for @wuild/vue-websocket
Gathering detailed insights and metrics for @wuild/vue-websocket
npm install @wuild/vue-websocket
Typescript
Module System
Node Version
NPM Version
69.1
Supply Chain
99.5
Quality
75.7
Maintenance
100
Vulnerability
99.6
License
JavaScript (100%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
16 Commits
1 Watchers
1 Branches
1 Contributors
Updated on Apr 27, 2019
Latest Version
1.0.6
Package Id
@wuild/vue-websocket@1.0.6
Unpacked Size
12.59 kB
Size
3.31 kB
File Count
5
NPM Version
6.4.1
Node Version
10.15.1
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
1
This is a small and simple WebSocket client for Vue2
Install with npm:
npm install --save @wuild/vue-websocket
1const WebSocketVue = require("@wuild/vue-websocket"); 2 3Vue.use(WebSocketVue);
The WebSocket methods are accessable using the $websocket variable inside vue.
1export default { 2 created(){ 3 this.$websocket.connect("wss://echo.websocket.org"); 4 } 5}
Event name | Event description |
---|---|
open | On connection open |
close | On connection close |
message | On message |
error | On error |
1export default { 2 created(){ 3 this.$websocket.$on("open", function(){ 4 // Connection is open 5 }); 6 this.$websocket.$on("close", function(){ 7 // Connection is closed 8 }); 9 this.$websocket.$on("message", function(){ 10 // WebSocket message received 11 }); 12 this.$websocket.connect("wss://echo.websocket.org"); 13 }, 14 events: { 15 websocket: { 16 open(){ 17 // WebSocket connection open 18 }, 19 close(){ 20 // WebSocket connection closed 21 }, 22 message(){ 23 // WebSocket message received 24 } 25 } 26 } 27}
1{ 2 "bodyParser": "json", 3 "reconnect": { 4 "enabled": true, 5 "attempts": 3, 6 "delay": 3000 7 } 8}
1<script> 2// These events will be automatically removed when component is destroyed 3export default { 4 events: { 5 websocket: { 6 open(){ 7 // WebSocket connection open 8 }, 9 close(){ 10 // WebSocket connection closed 11 }, 12 message(){ 13 // WebSocket message received 14 } 15 } 16 } 17} 18</script>
Copyright © 2018, Wuild Released under the MIT license.
No vulnerabilities found.
Reason
no binaries found in the repo
Reason
license file detected
Details
Reason
4 existing vulnerabilities detected
Details
Reason
Found 0/16 approved changesets -- score normalized to 0
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no SAST tool detected
Details
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
security policy file not detected
Details
Reason
project is not fuzzed
Details
Reason
branch protection not enabled on development/release branches
Details
Score
Last Scanned on 2025-07-07
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More