feature: Add support for getting inbound connection.
Also fixes any bugs I found.
This commit is contained in:
parent
b99d6a89dc
commit
a9fcdea037
8 changed files with 146 additions and 17 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue