Add and use the sendData method which will automatically break long data (longer than 0x1fff bytes) into different stream requests.

This commit is contained in:
NI
2019-09-19 15:04:46 +08:00
parent 2d47cd004c
commit 5131cb8122
3 changed files with 40 additions and 2 deletions

View File

@@ -153,7 +153,7 @@ class Telnet {
*
*/
sendData(data) {
return this.sender.send(0x00, data);
return this.sender.sendData(0x00, data);
}
/**