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?