wspromisify
Advanced tools
Comparing version 2.2.1 to 2.2.2
@@ -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 |
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
67392