From mboxrd@z Thu Jan 1 00:00:00 1970 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) on inbox.vuxu.org X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=RCVD_IN_DNSWL_NONE autolearn=ham autolearn_force=no version=3.4.4 Received: (qmail 16512 invoked from network); 12 Dec 2020 12:50:52 -0000 Received: from ewsd.inri.net (107.191.116.128) by inbox.vuxu.org with ESMTPUTF8; 12 Dec 2020 12:50:52 -0000 Received: from msg-1.mailo.com ([213.182.54.11]) by ewsd; Sat Dec 12 07:47:52 -0500 2020 Received: by b-1.in.mailobj.net [192.168.90.11] with ESMTP via ip-206.mailobj.net [213.182.55.206] Sat, 12 Dec 2020 13:47:43 +0100 (CET) X-EA-Auth: 8UQkLPMSnQ1qgOMZds3p9ZWrAabgRl80cdpnwvFI2lOefoTFmgLJUXU449xef6UApfkwH+fDWHcvOA6W618R24dfnJbAnfu1K8m9vxUZge0= To: 9front@9front.org From: Jstsmthrgk Message-ID: Date: Sat, 12 Dec 2020 13:47:43 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.4.3 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit List-ID: <9front.9front.org> List-Help: X-Glyph: ➈ X-Bullshit: STM self-signing hypervisor full-stack locator Subject: [9front] Websocket Message Delimiters Reply-To: 9front@9front.org Precedence: bulk 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.