sendData

inline fun <T> Comm.sendData(data: T)

Send an object. data should be serializable to JSON object (generally it means that the corresponding class should be marked with @Serializable)