RequestBuilder request = client.newRequestBuilder()
.method(Request.METHOD.GET)
.uri(targetUrl + "/suspend")
.transport(transport());
Socket socket = client.create();
socket.on("message", new Function<String>() {
@Override
public void on(String t) {
logger.info("Function invoked {}", t);