TODO: copy from https://toktok.ltd/spec#tcp-server