5 ms·
I believe you're supposed to use Native Messaging for that: https://developer.chrome.com/extensions/nativeMessaging https://developer.chrome.com/extensions/nati
by paulirwin 6y ago
I believe you're supposed to use Native Messaging for that: https://developer.chrome.com/extensions/nativeMessaging https://developer.chrome.com/extensions/nativeMessaging
- rosywoozlechan 6y agoThis may be well what needs to change, but in any case the message from Google should have been explicit about it instead of the dev involved having to create a blog post, hope it gets traction on HN and that someone here knows what the problem is.
- maartn 6y agothe docs are pretty explicit about it
- ldiracdelta 6y agoBut not their email.
- nolok 6y agoYes and no, I would be glad if Google in general could get much much better at this but in this specific case I'm sorry but http://* http://* and localhost access is not a hidden small thing.
- kevingadd 6y agoNative messaging is extremely broken and has bad documentation. I never got replies to my bug reports about it and gave up and just used websockets.
- pvg 6y agoOut of curiosity, what were the problems you ran into with native messaging?
- kevingadd 6y agoSo native messaging is fundamentally about opening a named pipe to a child process managed by the browser. I found that the pipe would silently break or time out. In the former scenario, the app was running but could no longer exchange native messages with the browser or extensions - chrome was just ignoring the pipe traffic. In practice I was able to use native messaging to spawn the executable but to actually talk with it I needed to use a websocket, kind of defeating the point. I initially assumed I was doing something wrong but after a week or so experimenting with simple test cases I could not get it to work. Maybe it works fine on Linux and Mac but not Windows.
- pvg 6y agoI initially assumed I was doing something wrong We should probably have a weekly HN column with that title.