Object function reference

write

A reference entry for write

Object function · Socket

write(string message) ⇒ boolean

Writes a line of text to a TCP socket and flushes the output stream. A newline character is appended automatically. For a WebSocket connection, sends the supplied text as a complete text message. Returns true.