SocketCommunicator

interface SocketCommunicator

Functions

readLine
Link copied to clipboard
common
abstract fun readLine(): String?
Reads a JSON message from the socket, blocking until a message is received or returning null if the socket closes.
js
abstract fun readLine(): String?
Reads a JSON message from the socket, blocking until a message is received or returning null if the socket closes.
abstract fun readLine(): String?
Reads a JSON message from the socket, blocking until a message is received or returning null if the socket closes.
linuxX64
abstract fun readLine(): String?
Reads a JSON message from the socket, blocking until a message is received or returning null if the socket closes.
macosX64
abstract fun readLine(): String?
Reads a JSON message from the socket, blocking until a message is received or returning null if the socket closes.
submit
Link copied to clipboard
common
abstract fun submit(request: String): String
Sends the request to the socket as a single line of JSON (line terminated with \n), and returns the JSON response from signald.
js
abstract fun submit(request: String): String
Sends the request to the socket as a single line of JSON (line terminated with \n), and returns the JSON response from signald.
abstract fun submit(request: String): String
Sends the request to the socket as a single line of JSON (line terminated with \n), and returns the JSON response from signald.
linuxX64
abstract fun submit(request: String): String
Sends the request to the socket as a single line of JSON (line terminated with \n), and returns the JSON response from signald.
macosX64
abstract fun submit(request: String): String
Sends the request to the socket as a single line of JSON (line terminated with \n), and returns the JSON response from signald.