@alipay/faas-biz-server-sdk
Advanced tools
Comparing version 1.1.2-alpha.3 to 1.1.2
{ | ||
"name": "@alipay/faas-biz-server-sdk", | ||
"version": "1.1.2-alpha.3", | ||
"version": "1.1.2", | ||
"description": "支付宝云开发业务 SDK(函数端)", | ||
@@ -5,0 +5,0 @@ "main": "dist/index.js", |
@@ -12,3 +12,3 @@ ## 云函数SDK | ||
Websocket API 请[点击](./docs/WS.README.md) | ||
Websocket API 请[点击](./WS.README.md) | ||
@@ -15,0 +15,0 @@ #### getCurrentUser() |
@@ -323,3 +323,3 @@ | ||
```js | ||
const { FaasWebSocketIO } = require('@alipay/faas-biz-server-sdk'); | ||
const { FaasWebSocketIO } = require('@alipay/faas-biz-server-sdk'); | ||
const wsio = new FaasWebSocketIO(); | ||
@@ -361,2 +361,5 @@ | ||
} | ||
if (event.payload === 'delete') { | ||
await socket.delete(); | ||
} | ||
})()); | ||
@@ -368,3 +371,3 @@ }); | ||
const socket = new wsio.Websocket({ connectionId: event.connectionId }); | ||
await socket.close(); | ||
await socket.delete(); | ||
})()); | ||
@@ -371,0 +374,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
No v1
QualityPackage is not semver >=1. This means it is not stable and does not support ^ ranges.
Found 1 instance in 1 package
300906
1