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