vertx / io.vertx.reactivex.core.net / NetSocket / write

write

open fun write(data: Buffer): NetSocket open fun write(str: String): NetSocket

Write a java.lang.String to the connection, encoded in UTF-8.

Parameters

str - the string to write

Return
a reference to this, so the API can be used fluently

open fun write(str: String, enc: String): NetSocket

Write a java.lang.String to the connection, encoded using the encoding enc.

Parameters

str - the string to write

enc - the encoding to use

Return
a reference to this, so the API can be used fluently