Skip to main content
Jun 8, 2021 8:21 AM UTC
Solved

How to display notification in Mashup using WebSocket ?

Hi, 

I need to  implement a notification function.    When certain event get raised from ThingWorx and is captured by the subscription ,  the mashup will display a notification message . 

 

Auto refresh widget may achieve this as a workaround ,  but I think WebSocket is  the best solution,  does ThingWorx provides OOTB function/extension for this kind of need ? 

 

Regards

Sean 

abjainAnswer
Jun 8, 2021 9:53 AM UTC

@seanccc : Please check this article which might be helpful in this case: https://www.ptc.com/en/support/article/CS269820 

4 replies

abjainAnswer
Jun 8, 2021 9:53 AM UTC

@seanccc : Please check this article which might be helpful in this case: https://www.ptc.com/en/support/article/CS269820 

seancccAuthor
Jun 9, 2021 3:01 AM UTC

@abjain ,

 

So,  it's still a "Pull"  solution ,  I need to call the service to get the alter information regularly from the Mashup using auto refresh widget.   

 

Is there a "Push"  solution which can send message from ThingWorx server to Mashup ? 

 

Regards,

Sean

Jun 10, 2021 5:46 AM UTC

@seanccc : I think you will have to use auto-refresh widget for getting new values by calling services.