I'm not sure what inetd/xinetd is, but the general idea behind websocketd is that you connect stdin/stdout of a process to a minimal websocket server. In doing so, you achieve UNIX-y composeability and a convenient network interface to an arbitrary process.