jasongin / noble-uwp

Noble (Node.js Bluetooth LE) with Windows 10 UWP bindings
MIT License
83 stars 45 forks source link

UWP Loopback IPC #37

Open btaber opened 7 years ago

btaber commented 7 years ago

[Question] - I am new to this technology stack. Does noble-uwp bypass the issue of UWP apps not allowing loopback IPC, either with Electron or without? My intention is to implement a noble-uwp server app and control BLE devices through a client on the same machine, with the client implemented as a JS React app (maybe with Electron) or through a Java client.

jasongin commented 7 years ago

I'm not sure I understand the question... a bluetooth library doesn't impact the TCP/IP loopback restriction.

btaber commented 7 years ago

In itself, no, but I am thinking of using noble-uwp in a node/express server app and serve up a REST API for BLE connectivity into my device, and then connect a client app running as a separate java process on the same computer. Would that violate the loopback IPC restriction?

jasongin commented 7 years ago

My understanding is that would be blocked if the client app is a windows store app.

As a developer you can exempt certain apps from the loopback restriction. But it's not something you can automate at installation or expect end-users to do.

btaber commented 7 years ago

Thank you for your response. That is my understanding as well. I expect that implementing a React/JS client and wrapping it in Electron would also not work, because that would still require loopback IPC?