Socket
Socket
Sign inDemoInstall

wspromisify

Package Overview
Dependencies
Maintainers
1
Versions
49
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

wspromisify - npm Package Compare versions

Comparing version 2.2.1 to 2.2.2

2

dist/src/WS.d.ts

@@ -19,5 +19,5 @@ import './types';

close(): wsc.AsyncErrCode;
send<DataType = any>(message_data: DataType, opts?: wsc.SendOptions): Promise<DataType>;
send<RequestDataType = any, ResponseDataType = any>(message_data: RequestDataType, opts?: wsc.SendOptions): Promise<ResponseDataType>;
constructor(user_config?: wsc.UserConfig);
}
export default WebSocketClient;

@@ -46,3 +46,3 @@ {

},
"version": "2.2.1",
"version": "2.2.2",
"ava": {

@@ -49,0 +49,0 @@ "files": [

@@ -94,6 +94,6 @@

public async send<DataType = any>(
message_data: DataType,
public async send<RequestDataType = any, ResponseDataType = any>(
message_data: RequestDataType,
opts = <wsc.SendOptions>{}
): Promise<DataType> {
): Promise<ResponseDataType> {
this.log('send', message_data)

@@ -100,0 +100,0 @@ const config = this.config

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