Module: sock

Sock is a plugin that can connect to and communicate with a TCP socket served from another location on the network. The object (AsciiClient) behaves like a serial port connection, so it is usually easy to switch between a serial port and a sock is a JavaScript program. Some plugins may also allow a sock to be specified instead of a serial port as long as it doesn't expect to configure the port. Sock is the object returned when the plugin is loaded. It is the starting point for creating a connection to a TCP port.

The name of the plugin for loading is 'sock'.