Skip to content

Latest commit

 

History

History
28 lines (21 loc) · 553 Bytes

README.md

File metadata and controls

28 lines (21 loc) · 553 Bytes

socket input

Input event message should end with new line (\n).

Synopsis

{
	"input": [
		{
			"type": "socket",

			// Socket type. Must be one of ["tcp", "udp", "unix", "unixpacket"].
			"socket": "tcp",

			// For TCP or UDP, address must have the form `host:port`.
			// For Unix networks, the address must be a file system path.
			"address": "localhost:9999",

			// (optional) SO_REUSEPORT applied or not, default: false
			"reuseport": false
		}
	]
}

Note: at the moment, UNIXGRAM socket are not supported.