apply socket

apply socket Request: Set a socket to listen for incoming connections on.

listen.applysocket
unique ID unique ID
interface string: optional
port port
protocol family protocol family
SSL SSL: optional
Bonjour domains array of string: optional, unique
options array of socket options: optional, unique

Description

apply socket adds or modifies a single socket. Sockets are indexed by their unique ID. If the socket's unique ID is unique, the provided socket is added. If the socket's unique ID matches an existing socket's unique ID, the existing socket is replaced by the provided socket.