reconnecting-websocket
Advanced tools
Comparing version 4.0.0-rc3 to 4.0.0-rc4
@@ -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 @@ /** |
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
80064