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 client = Telnet.client('192.168.56.1:4000');
let connected = false;
client.filter((event) => event instanceof Telnet.Event.Connected)
.subscribe((event) => {
connected = true;
client.send('I am connected');
client.sendln('also in sendln');
});
client.data
.subscribe((data) => {
if (!connected) {
return;
}
console.log((data));
});
client.connect();
RESULT:
New client
Maxx command server.
Type Help to view a list of registered commands.
-->I
a
m
c
o
n
n
e
c
t
e
d
a
l
s
o
i
n
s
e
n
d
l
n
Command not recognised. Enter 'help' to view a list of available commands.
[Press ENTER to execute the previous command again]
-->
The text was updated successfully, but these errors were encountered:
From your report, it looks a newline is being sent in between each character with the send function (sendln just calls send and then send("\r\n")). Is this correct?
Is "Maxx Command Server" the telnet server you're connecting to?
I'll see if I can reproduce this using the servers I have access to.
RESULT:
The text was updated successfully, but these errors were encountered: