Article View: news.software.nntp
Article #87094Re: Semi-random thought: websockets
From: Russ Allbery
Date: Mon, 19 Oct 2015 21:10
Date: Mon, 19 Oct 2015 21:10
28 lines
2093 bytes
2093 bytes
J. Moreno <planb@newsreaders.com> writes:
> I was browsing yet another lousy forum the other day, and it occurred to
> me that that there's no pure javascript NNTP reader, because such a
> beast is of course impossible--javascript can't get out of it's
> sandbox...but maybe it could.
> Does anyone have any idea how difficult it would be to add WebSocket
> support to INN?
I've never done much (well, anything) with Javascript, but a quick look at
the protocol makes me think you'd want to put a translator server in front
of something that spoke NNTP, not add support directly to INN. In other
words, build a WebSocket bridge. That's at least the easiest way to
experiment with such a thing.
Note that NNTP is definitely not full-duplex and requires the client and
server take turns and know whose turn it is, although I assume that you
can do that on top of WebSocket by just respecting that at the higher
level of the protocol.
--
Russ Allbery (eagle@eyrie.org) <http://www.eyrie.org/~eagle/>
Please post questions rather than mailing me directly.
<http://www.eyrie.org/~eagle/faqs/questions.html> explains why.
Technical Details
Message-ID:
<87d1wava2l.fsf@hope.eyrie.org>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mailReferences:
<20151017031939.880$4B@newsreader.com>Show Full Headers
Complete Article Headers
Message-ID: <87d1wava2l.fsf@hope.eyrie.org> Subject: Re: Semi-random thought: websockets Date: Mon, 19 Oct 2015 14:10:26 -0700 From: Russ Allbery <eagle@eyrie.org> References: <20151017031939.880$4B@newsreader.com> Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!illumos!news.pugleaf.net!.TX!archive.pugleaf.net!archive.newsdeef.eu!mbox2nntp-news.software.nntp.(19219).mbox.7z!not-for-mail Newsgroups: news.software.nntp Organization: The Eyrie Lines: 26 NNTP-Posting-Host: 96.90.234.101 Mime-Version: 1.0 Content-Type: text/plain X-Trace: usenet-its.stanford.edu 1445289026 12646 96.90.234.101 (19 Oct 2015 21:10:26 GMT) X-Complaints-To: news@usenet-its.stanford.edu User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/24.5 (gnu/linux) Cancel-Lock: sha1:N+t0XkokFGXNtJrd6XdV7fn2stE= X-Received-Body-CRC: 1115249562 X-Received-Bytes: 2025