我正在尝试在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软件包?