feature: Add support for getting inbound connection.

Also fixes any bugs I found.
This commit is contained in:
greysoh 2024-05-07 18:35:04 -04:00
parent b99d6a89dc
commit a9fcdea037
Signed by: imterah
GPG key ID: 8FA7DD57BA6CEA37
8 changed files with 146 additions and 17 deletions

View file

@ -80,8 +80,8 @@ server.on("connection", client => {
"Welcome to NextNet LOM. Run 'help' to see commands.\r\n\r\n~$ ",
);
function println(...str: string[]) {
stream.write(format(...str).replaceAll("\n", "\r\n"));
function println(...data: any[]) {
stream.write(format(...data).replaceAll("\n", "\r\n"));
};
while (true) {