Instead of running a TCP server in native messaging host application, is it possible to run a TCP sever directly in chrome extension's background page and listen on localhost?
Extension cannot run tcp server, it can talk to external server by http or websocket. Thanks to wOxxOm