Code:
tls.createServer(options, function (s) {
s.write(msg+"\n");
s.pipe(s);
}).listen(8000);
Problem:
1 I can NOT find something like class/type of param s. As typeeof only return Object.
2 However, for method belong to this s, like s.pipe/s.write.
Is there some way to find some info/definition related?
Ref: https://docs.nodejitsu.com/articles/cryptography/how-to-use-the-tls-module/
Thank you very much.
Note:
1 I mostly from a C-language backgronup.
2 I hope there is some way to find class of variable s, then I can go to that class manual to find info/definition of methods like pipe/join.
3 Not sure whether it is the right way to do things in nodejs.