4
Views
2
Comments
[Azure Web PubSub Websocket Library] Azure Pubsub message callback without using WebSocket in javascript
azure-web-pubsub-websocket-library
Reactive icon
Forge asset by Stefan Weber

Hi everyone,

I'm looking to find out if it's possible to callback the submitted message using only JavaScript, or if using an extension is also an option. Additionally, if there are any other methods available besides using JavaScript, I'd like to know about those as well.

The reason I ask is because the endpoint I'm working with is private, so I'm unable to access it solely with WebSocket.

Thank you for your help.

Best regards, Balaji

2021-10-09 07-57-44
Stefan Weber
 
MVP

Hi. You mean you have a private Azure Web PubSub endpoint? In order to use that you would require a private link connection between your OutSystems environment and your Azure environment.

Could you provide some more details on what you mean "callback the submitted message using only Javascript"?

Please note that this library has only limited features. It only allows to listen to events but not send directly via javascript to Azure Web PubSub SendMessage. 


Stefan

UserImage.jpg
Balaji Ravikumar

Hi @Stefan Weber, Thank you for your response.

When using a private endpoint on the same server, generating an ACCESS URI, sending messages, and receiving messages all work fine. However, with an external chat app, users can create an ACCESS URI and send messages through the private endpoint, but they're having trouble receiving messages via WebSocket using the same ACCESS URI.

Can we make this work with a private endpoint, or do we need to try a different approach?



Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.