-
Notifications
You must be signed in to change notification settings - Fork 29.7k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
How to open exist tty using net.Socket ? #37780
Comments
I don't think opening a socket to a TTY fd is supported yet.
|
@RaisinTen No, it is supported. I think this might also qualify as a bug in the net module. In any case, one can use |
@addaleax The passed fd type gets rejected here: Lines 140 to 156 in 3bba40a
|
Yeah, although I think there might also be another issue somewhere for merging the two TTY classes? I think that would be the best solution here. |
Thank you, @addaleax and @RaisinTen ! So, there is no document about accepting fd in tty modules. it is missing? or experimental function? |
I don’t know why the constructors are not documented, but they should be, yes. |
* Remove deprecated API `process.binding` Originally designed to work with ancient node.js 0.12 and io.js * Fix node `net.Socket` limitations nodejs/node#37780
Hi, there
I want to open exist tty using net.Socket. But I got an error like a below.
I have two questions.
First, how can I open tty using net.Socket module ?
Second, I success to open tty using tty.ReadStream like a them. But I didn't find it in document. It is trial function? (It is not safe to use in production?)
thank you
The text was updated successfully, but these errors were encountered: