socket.connect(path[, connectListener])
path
<string> 客户端应该连接到的路径。 请参阅标识 IPC 连接的路径。connectListener
<Function>socket.connect()
方法的常用参数。 将被添加为'connect'
事件的监听器一次。- 返回: <net.Socket> 套接字自身
在给定的套接字上发起 IPC 连接。
socket.connect(options[, connectListener])
的别名被称为 { path: path }
作为 options
。
path
<string> Path the client should connect to. See Identifying paths for IPC connections.connectListener
<Function> Common parameter ofsocket.connect()
methods. Will be added as a listener for the'connect'
event once.- Returns: <net.Socket> The socket itself.
Initiate an IPC connection on the given socket.
Alias to
socket.connect(options[, connectListener])
called with { path: path }
as options
.