web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Are Websocket connecti...
Power Apps
Unanswered

Are Websocket connections are valid for PCF?

(0) ShareShare
ReportReport
Posted on by

I am doing some PCF for canvas application. Our scenario is, Power App can be notified with some local peripheral devices with websocket. So my custom control have a web socket connection like http://localhost:1234/ws and can get data from socket and works as I expected in my local dev and also in Power Apps environment. 

 

So this PowerApp application can get local peripheral device data and do something according to it.

Is there any approach for Power Apps to get in communicate these kind of devices? And when I want to publish the App, is it allowed to have local communications?

I have the same question (0)
  • ScottDurow Profile Picture
    1,039 on at

    Hi @Anonymous , I have built a component using websockets and it works really well - as to if it is 'allowed' or not - the only thing that is specifically called out is localStorage and sessionStorage being not supported.
    See Limitations of Power Apps component framework - Power Apps | Microsoft Docs

  • DarrenHiggins Profile Picture
    3 on at

    Scott.

     

    Do you have any further info on how you used the websockets in your components?

  • subhaveera Profile Picture
    20 on at

    Hi Scott,

    I am trying to create and use WebSockets in PCF. The same websocket URL the opens in javascript does not open within PCF. WebSocket is being created. But readyState is 0 forever. It doesn't open. Is there any settings I have to enable to use WebSockets in PCF?

     

    Thanks in advance for any help.

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 796 Most Valuable Professional

#2
Michael E. Gernaey Profile Picture

Michael E. Gernaey 327 Super User 2025 Season 2

#3
Power Platform 1919 Profile Picture

Power Platform 1919 268

Last 30 days Overall leaderboard