We are using WSO2 API Manager version 4.0.0 to expose a SignalR service implemented in .NET Core. The frontend is built with Angular.
Here is how we have configured the APIs.
WebSocket API:
WSO2 Endpoint: wss://localhost/chathub/1.0.0/chathub
Backend Endpoint: wss://localhost:30002/chathub
Topic: The WebSocket API is configured to handle messages related to the chathub topic.
REST API:
WSO2 Endpoint: https://localhost/chats/1.0.0/chathub
Purpose: This REST API provides functionalities such as generating a connection ID and other necessary responses required by the client to initiate and maintain a WebSocket connection with the SignalR service.
Can we add same context in two API’s in wso2 apim in which one is REst api and other is Web Socket? Or can we change the Web Socket port to https port 8243? Is there any possibility that two api have same context like /chathub?
One more thing can we change in SignalR that if hits at https://localhost/chats/1.0.0/chathub first get all response and then connect wss://localhost/chathub/1.0.0/chathub at websocket on this Url? If yes what is the possile solution.