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
negotiationMandatory: Disable telnet negotiations if needed. Can be used with 'send' when telnet specification is not needed. Telnet client will then basically act like a simple TCP client. Defaults to true.
It appears negotiationMandatory has no impact on send. Since send is basically a passthrough to write, the only checks after sending are for waitFor and sendTimeout. The desired effect of negotiationMandatory: false seems to be achieved by sendTimeout: undefined. However, since sendTimeout defaults to 2000, this is not an obvious option since undefined must be explicitly set.
I believe a better check would be to check for if (this.opts.sendTimeout && negotiationMandatory) unless I am misunderstanding the intent of negotiationMandatory.
The text was updated successfully, but these errors were encountered:
Per the documentation:
It appears
negotiationMandatory
has no impact on send. Sincesend
is basically a passthrough towrite
, the only checks after sending are forwaitFor
andsendTimeout
. The desired effect ofnegotiationMandatory: false
seems to be achieved bysendTimeout: undefined
. However, sincesendTimeout
defaults to2000
, this is not an obvious option sinceundefined
must be explicitly set.I believe a better check would be to check for
if (this.opts.sendTimeout && negotiationMandatory)
unless I am misunderstanding the intent ofnegotiationMandatory
.The text was updated successfully, but these errors were encountered: