wspromisify
Advanced tools
Comparing version 0.0.1 to 0.0.11
{ | ||
"name": "wspromisify", | ||
"version": "0.0.1", | ||
"version": "0.0.11", | ||
"description": "Makes it easier to handle different data via WebSockets.", | ||
@@ -5,0 +5,0 @@ "main": "WS.js", |
@@ -18,3 +18,4 @@ | ||
timeout: 1400, | ||
id_name: 'id' | ||
id_name: 'id', | ||
adapter: (host => new WebSocket(host)) | ||
} | ||
@@ -64,3 +65,3 @@ | ||
this.messages = [] // send() queue | ||
this.ws = new WebSocket(`ws://${config.url}`) | ||
this.ws = this.config.adapter(`ws://${config.url}`) | ||
const ws = this.ws | ||
@@ -67,0 +68,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
5967
127