9front - general discussion about 9front
 help / color / mirror / Atom feed
* [9front] Websocket Message Delimiters
@ 2020-12-12 12:47 Jstsmthrgk
  2020-12-12 13:35 ` sirjofri
  0 siblings, 1 reply; 2+ messages in thread
From: Jstsmthrgk @ 2020-12-12 12:47 UTC (permalink / raw)
  To: 9front

I have recently been thinking about writing a websocket implementation
for plan9/9front. I kind of wanted it to work similar to tcpsrv and
tcpclient.

Whatever, I want to be able to just put it on stdin/stdout of e.g.
exportfs, but also preserve message delimiters in some way.

The problem is that websocket allows message lenghts of up to 64^2-1,
which will definitely not work with single writes.

Does anyone know of any other option than implementing it as a tcp-like
stream and dropping message delimiters?

As for why I want to make it, I want to be able to make services that
are interfaceable from browser javascript, maybe even a drawterm-web.



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2020-12-12 13:37 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-12-12 12:47 [9front] Websocket Message Delimiters Jstsmthrgk
2020-12-12 13:35 ` sirjofri

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).