Path: csiph.com!fu-berlin.de!uni-berlin.de!individual.net!not-for-mail From: rbowman Newsgroups: comp.os.linux.misc Subject: Re: Web compatibility in FLOSS websites Date: 17 Aug 2025 20:38:47 GMT Lines: 35 Message-ID: References: <107kmkc$fjp8$1@dont-email.me> <689e5392@news.ausics.net> <107n0uq$11pib$2@dont-email.me> <689fd2e9@news.ausics.net> <107pjk9$1k377$15@dont-email.me> <107ra2n$20k71$12@dont-email.me> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-Trace: individual.net bnifhoPMRbHY7NrRZcPCZQ/+nr3htmwGU9Ai3iZLFH3pKw6bDD Cancel-Lock: sha1:JoFXnafbXK4sx5ZI/zgs4ektyVQ= sha256:GbM9FRFiWC+uPpN7+fNtDGxQHwLx6NsLs9Sr60eKjDA= User-Agent: Pan/0.162 (Pokrosvk) Xref: csiph.com comp.os.linux.misc:71514 On Sun, 17 Aug 2025 01:08:39 -0000 (UTC), Lawrence D’Oliveiro wrote: > There is another step beyond that, and that is the use of “WebSocket” > connections for continuous live full-duplex communication between client > and server. Found a use for those yet? Hell yes! var io = require('socket.io')(http); In our legacy system the Motif clients and the web map all established a connection to the node server and passed data back and forth. socket.request.connection.remoteAddress is the IP of the machine originating the connection. Using that to match up the messages the map would only display the incidents and resources that dispatch had active since everything on that machine was connected via the server. The map in the browser used the socket.io library. The Motif clients made a standard socket connection and sent a file with a Content-Type: application/json header. Of course the server also provided static files and other data common to the map. The updated product was strictly browser based and done in Angular so that introduces protobufs and so forth to the game. The map was integrated. The Motif clients didn't need a map or interaction with a node server; that was all a configurable option. The Angular product definitely needed nginx and a lot more wiring. The daemons remained the same.