Got my nanochat mode for Emacs working :)
Elisp has surprisingly good network socket support...but creating a new mode involved reading some very s p a r s e documentation
Ideally, I'd have a mode that uses an "input line" at the bottom, and "text lines" above it. But I couldn't figure it out, so I just output to the buffer and enter commands using the minibuffer
