You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
const server = new Telnet.TelnetServer( rawSocket => {
const telnetSocket = new Telnet.TelnetSocket();
telnetSocket.attach( rawSocket );
telnetSocket.setEncoding( "utf8" );
} ).netServer;
The first time any data is received after this point there is a TypeError given:
C:\Projects\mud\node_modules\ranvier-telnet\index.js:154
databuf.copy(inputbuf, inputlen);
^
TypeError: databuf.copy is not a function
at Socket.<anonymous> (C:\Projects\mud\node_modules\ranvier-telnet\index.js:154:15)
at Socket.emit (node:events:513:28)
at addChunk (node:internal/streams/readable:324:12)
at readableAddChunk (node:internal/streams/readable:293:11)
at Readable.push (node:internal/streams/readable:234:10)
at TCP.onStreamRead (node:internal/stream_base_commons:190:23)
It appears that the incoming data is not being checked for encoding:
The first time any data is received after this point there is a TypeError given:
It appears that the incoming data is not being checked for encoding:
My attempted fixes have proven ineffective. I will update if a solution is found.
The text was updated successfully, but these errors were encountered: