With \'Native Messaging\' it should be possible to communicate between a chrome extension and a native app. https://developer.chrome.com/extensions/nativeMessaging
G
Native messaging cannot connect to an arbitrary process, because:
stdin
using the specified protocol, or Chrome will break the connection off. I doubt Sublime plugins can alter Sublime's behavior in this case.So your hypothetical Native host must be a separate process, that can be restarted independently of Sublime and somehow talk to Sublime.
You don't actually need the Native Messaging protocol here. An alternative route is to use WebSockets: a Sublime plugin can act as a WebSocket server on localhost, and an extension can connect to that. See GhostText as an example of such architecture.