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

base-websocket

Package Overview
Dependencies
Maintainers
1
Versions
13
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

base-websocket - npm Package Compare versions

Comparing version 1.0.5 to 1.0.6

2

package.json
{
"name": "base-websocket",
"version": "1.0.5",
"version": "1.0.6",
"description": "webSocket basic module",

@@ -5,0 +5,0 @@ "license": "MIT",

interface Data<obj> {
[propName: string]: obj;
}
interface Init {
url: string;
onOpen: () => void;
onResponse: (res: any) => void;
onError: () => void;
onClose: () => void;
}
type Send = <obj>(data: Data<obj>) => void;
declare let send: Send;
declare let closeWS: () => void;
declare function initWebSocket({
url,
onOpen,
onResponse,
onError,
onClose
}: {
url: string;
onOpen?: () => void;
onResponse?: () => void;
onError?: () => void;
onClose?: () => void;
}): void;
declare function initWebSocket({ url, onOpen, onResponse, onError, onClose }: Init): void;
export { initWebSocket, send, closeWS };
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