This component connects your backend with Azure Web PubSub service.
You need the connection string with all server actions.
To connect a frontend to Azure Web PubSub service please use the Azure Web PubSub Websocket library widget in your client application.
Note: Potentially you can use any WebSocket library available or just plain javascript as done is this library module.
The WebPubSub_GetClientAccessUri has the following input parameters
Note: AccessUris are always unique and target a single Hub. Whenever a client needs to listen to multiple hubs - message topics - you have to create multiple access uris (one for each hub) and use multiple instances of the websocket widget.
Sending messages from the backend
Messages in this component are just text strings, but it makes sense to send serialized data structures and deserialize them on the client again.
Send server actions are available for