'use strict';
exports.main = async (event, context) => {
const ws = uniCloud.webSocketServer()
let res = await ws.signedURL('socket', {
key1: 'value1',
})
return res
};
全栈OkLin
- 发布:2024-08-19 09:43
- 更新:2024-08-19 11:28
- 阅读:104
产品分类: uniCloud/App
示例代码:
操作步骤:
阿里云、云端node版本是16.15.1
阿里云、云端node版本是16.15.1
预期结果:
返回wss地址
返回wss地址
实际结果:
{
"success": false,
"error": {
"code": "FunctionBizError",
"message": "ws.signedURL is not a function"
}
}
{
"success": false,
"error": {
"code": "FunctionBizError",
"message": "ws.signedURL is not a function"
}
}
bug描述:
在云函数或云对象中调用ws.signedURL时会报异常
1 个回复
DCloud_uniCloud_CRL
websocket仅支持支付宝云