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?
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.
Scott.
Do you have any further info on how you used the websockets in your components?
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
WarrenBelz
87
Most Valuable Professional
mmbr1606
71
Super User 2025 Season 1
Michael E. Gernaey
65
Super User 2025 Season 1