net.createConnection(path[, connectListener])


启动 IPC 连接。

🌐 Initiates an IPC connection.

此函数创建一个所有选项均为默认值的新 net.Socket,立即使用 socket.connect(path[, connectListener]) 发起连接,然后返回开始连接的 net.Socket

🌐 This function creates a new net.Socket with all options set to default, immediately initiates connection with socket.connect(path[, connectListener]), then returns the net.Socket that starts the connection.