Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

it-ws

Package Overview
Dependencies
Maintainers
2
Versions
26
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

it-ws - npm Package Compare versions

Comparing version 5.0.0 to 5.0.1

14

dist/src/duplex.js

@@ -24,6 +24,12 @@ import source from './source.js';

connected: async () => await connectedSource.connected(),
close: async () => await new Promise((resolve) => {
socket.addEventListener('close', () => resolve());
socket.close();
}),
close: async () => {
if (socket.readyState === socket.CONNECTING || socket.readyState === socket.OPEN) {
await new Promise((resolve) => {
socket.addEventListener('close', () => {
resolve();
});
socket.close();
});
}
},
destroy: () => {

@@ -30,0 +36,0 @@ if (socket.terminate != null) {

{
"name": "it-ws",
"version": "5.0.0",
"version": "5.0.1",
"description": "Simple async iterables for websocket client connections",

@@ -5,0 +5,0 @@ "author": "Alan Shaw",

@@ -47,6 +47,12 @@ import source from './source.js'

connected: async () => await connectedSource.connected(),
close: async () => await new Promise<void>((resolve) => {
socket.addEventListener('close', () => resolve())
socket.close()
}),
close: async () => {
if (socket.readyState === socket.CONNECTING || socket.readyState === socket.OPEN) {
await new Promise<void>((resolve) => {
socket.addEventListener('close', () => {
resolve()
})
socket.close()
})
}
},
destroy: () => {

@@ -53,0 +59,0 @@ if (socket.terminate != null) {

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc