News for hackers. Stuff that matters.
Re:Websocketd by marktangotango on Saturday January 26, 2019 @09:28AM (#19006400)
Using your language of choice: You open a socket on a port, listen for connections, when connection from client arrives read bytes from the socket, parse http request from those bytes, do something that may yield bytes in response, write the response bytes to the socket, close the socket (optional).

https://beej.us/guide/bgnet/

Re:Websocketd by sureaboutthis on Saturday January 26, 2019 @11:02AM (#19006816)
I asked about how to do this through apache or nginx. I know how to do it as you suggest.