request

fun request(t: String, b: JSONObject = JSONObject()): Int?(source)

A request (with id); the answer, or an error with re, arrives in onMessage. Returns the id, null when not sent.