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

reconnecting-websocket

Package Overview
Dependencies
Maintainers
1
Versions
42
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

reconnecting-websocket - npm Package Compare versions

Comparing version 4.0.0-rc3 to 4.0.0-rc4

2

dist/events.d.ts

@@ -17,2 +17,2 @@ export declare class Event {

}
export declare type EventListener = (event: Event) => undefined;
export declare type EventListener = (event: Event) => void;

@@ -69,11 +69,11 @@ import { CloseEvent, Event, EventListener } from './events';

*/
onclose?: (event: CloseEvent) => undefined;
onclose?: (event: CloseEvent) => void;
/**
* An event listener to be called when an error occurs
*/
onerror?: (event: Event) => undefined;
onerror?: (event: Event) => void;
/**
* An event listener to be called when a message is received from the server
*/
onmessage?: (event: MessageEvent) => undefined;
onmessage?: (event: MessageEvent) => void;
/**

@@ -83,3 +83,3 @@ * An event listener to be called when the WebSocket connection's readyState changes to OPEN;

*/
onopen?: (event: Event) => undefined;
onopen?: (event: Event) => void;
/**

@@ -86,0 +86,0 @@ * Closes the WebSocket connection or connection attempt, if any. If the connection is already

@@ -31,2 +31,2 @@ export class Event {

export type EventListener = (event: Event) => undefined;
export type EventListener = (event: Event) => void;
{
"name": "reconnecting-websocket",
"version": "4.0.0-rc3",
"version": "4.0.0-rc4",
"description": "Reconnecting WebSocket",

@@ -5,0 +5,0 @@ "main": "./dist/reconnecting-websocket-cjs.js",

@@ -164,3 +164,3 @@ /*!

*/
public onclose?: (event: CloseEvent) => undefined = undefined;
public onclose?: (event: CloseEvent) => void = undefined;

@@ -170,3 +170,3 @@ /**

*/
public onerror?: (event: Event) => undefined = undefined;
public onerror?: (event: Event) => void = undefined;

@@ -176,3 +176,3 @@ /**

*/
public onmessage?: (event: MessageEvent) => undefined = undefined;
public onmessage?: (event: MessageEvent) => void = undefined;

@@ -183,3 +183,3 @@ /**

*/
public onopen?: (event: Event) => undefined = undefined;
public onopen?: (event: Event) => void = undefined;

@@ -186,0 +186,0 @@ /**

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