As we know, the Azure API Management still doesn't support WebSockets
Dec 6, 2016:
Rest assured we still have this request in mind and are continually
reviewing it. Please keep your feedback coming!
If you are using Azure SignalR Service then you can follow the way described by @lazizanie because your SignalR service should only provide a negotiate endpoint:
Let's say you have the Hub named myHub in ASP.NET Core 3.1
app.UseEndpoints(endpoints => endpoints.MapHub<Hub>("/myHub"));
Then add operation in API management URL=POST /myHub/negotiate
with negotiateVersion
query param
or use JSON editor and add it to paths
"/myHub/negotiate": {
"post": {
"summary": "SignalR negotiate ",
"operationId": "signalr-negotiate",
"parameters": [{
"name": "negotiateVersion",
"in": "query",
"schema": {
"type": ""
}
}],
"responses": {
"200": {
"description": null
}
}
}
}
For the Backed set host of your SignalR service like https://myHubSignalR.westeurope.cloudapp.azure.com
/hub
on the same api). – Howling