C# native host with Chrome Native Messaging
Assuming the manifest is set up properly, here is a complete example for talking to a C# host using the “port” method: using System; using System.IO; using Newtonsoft.Json; using Newtonsoft.Json.Linq; namespace NativeMessagingHost { class Program { public static void Main(string[] args) { JObject data; while ((data = Read()) != null) { var processed = ProcessMessage(data); … Read more