3 ms·
> one day the browser might have daemons It already does. Just write an extension and schedule a function. The one thing I don't think you can do yet is listen
by anon4 12y ago
> one day the browser might have daemons
It already does. Just write an extension and schedule a function. The one thing I don't think you can do yet is listen on a socket. At least not without doing a websocket connection to a separate service. Or bringing a native component with you.
- icebraining 12y agoFirefox extensions can, and have always could. ChatZilla, for example, does direct access to IRC servers from Mozilla browsers since 2000, but even server sockets are possible[1]. Native components are also possible - they're called XPCOM components. Or you can use js-ctypes[2]. [1] https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/Reference/Interface/nsIServerSocket https://developer.mozilla.org/en-US/docs/Mozilla/Tech/XPCOM/... [2] https://developer.mozilla.org/en-US/docs/Mozilla/js-ctypes https://developer.mozilla.org/en-US/docs/Mozilla/js-ctypes