🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: news.software.nntp
Article #87107

Re: Semi-random thought: websockets

#87107
From: J. Moreno
Date: Thu, 22 Oct 2015 06:36
41 lines
2763 bytes
Russ Allbery <eagle@eyrie.org> wrote:
> J. Moreno <planb@newsreaders.com> writes:

> > 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.

That lets you develop the javascript, but doesn't cut the server/javascript
leash, which is what I was actualy after --  as it is, javascript can
really only communicate to the page it's on or to a http server.  While
this is of course a problem with javascript not with other protocols or
servers, one way to address it would be for non-http servers to add a way
to let javascript talk to them.

Alternate solutions would be to standardize websocket bridge ports, or
wait/hope that the browsers start allowing raw tcp streams out.

Not allowing raw streams seems to be a deliberate decisions -- both Chrome
and FireFox allow it, but only under limited circumstances (plugins,
certified apps for Firefox OS), so waiting doesn't seem likely to be useful
in the short term.

Adding WebSockets to INN seemed at least vaguely possible.

> 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.

I believe the fact that it isn't full duplex would make it easier on both
sides.

-- 
J. Moreno

Technical Details
Message-ID: <20151022023903.402$7b@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
References: <20151017031939.880$4B@newsreader.com> <87d1wava2l.fsf@hope.eyrie.org>

Show Full Headers
Complete Article Headers
Message-ID: <20151022023903.402$7b@newsreader.com>
Subject: Re: Semi-random thought: websockets
Date: Thu, 22 Oct 2015 06:36:26 +0000
From: J. Moreno <planb@newsreaders.com>
References: <20151017031939.880$4B@newsreader.com> <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-mail
Organization: NewsReader.Com Subscriber
Newsgroups: news.software.nntp
X-NRC-Trace: NewsReader.Com gj+lMwZGj/3E,yjQtibxC9zd@tv5Av+YzCyYl/V-=3t@V2
X-Face: $!7l?58&Lro>GQtr;A/P^'38=7{P[jPy/?JF*m`Z2&~@3:P3L81Sa7RQ=Y~o|
  ?'D1cB]L9V=\OS(\8S,5
Approved: You don't say!
Lines: 39
NNTP-Posting-Host: 0c97d8be.nr5-q1.newsreader.com
X-Trace: DXC=5kO^8Om:QZQA8MO0I<oVl_bgZaH`e<A[YZ?:i9<JJBS^Kg?mhh7FKm]iJ;iV2YAoGU<HKZPBfghJR[9F?EmaR83R
X-Complaints-To: abuse@newsreader.com
X-Received-Body-CRC: 3848565132
X-Received-Bytes: 2667