Hi all,
I want to create a extension, so that during developing web pages, a
save in my editor causes a refresh in the browser. (A trigger, not
just a Chrome periodical refresh). For that I need to send Chrome a
message that it needs to refresh the page. So Chrome needs to open a
TCP socket to listen for such messages in my extension.
The "extension socket" [1] thread suggests WebSockets, but also says:
> Note that websockets won't let you listen to an arbitrary port or open
> regular sockets
I've looked at the WebSockets API [2], but it doesn't seem to allow
opening a listening socket on any ports, even if I'm willing to accept
a limited port set and the WebSocket protocol.
Can I use WebSockets somehow that I've missed or is there another way
to open a listening socket in Chrome without resorting to NPAPI with
all the cross-platform issues that is likely to cause?
Peter
1:
http://groups.google.com/a/chromium.org/group/chromium-extensions/browse_thread/thread/d8638fc366a541c2/061c8b91c8a235fa
2:
http://dev.w3.org/html5/websockets/#the-websocket-interface