Azure SignalR和无服务器框架

时间:2020-05-05 12:42:20

标签: node.js azure signalr azure-functions serverless-framework

我正在尝试在Azure Functions javascript应用程序中使用Azure SignalR服务。由于我不知道的原因,该应用程序使用Serverless framework,该文档的Azure相关文档非常差。

在无服务器而不是function.json中有相应的.yml文件。我需要以某种方式将以下绑定从the official documentation转换为等效的.yml定义:

{
    "type": "signalRConnectionInfo",
    "name": "connectionInfo",
    "hubName": "chat",
    "userId": "{headers.x-ms-client-principal-id}",
    "connectionStringSetting": "<name of setting containing SignalR Service connection string>",
    "direction": "in"
}

我该怎么做?框架如何知道signalRConnectionInfo类型,因为似乎没有要安装的npm软件包?

0 个答案:

没有答案