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.CLOSE, new Function<String>() {
@Override
public void on(String t) {
//Can I receive close message when server is stopped?
logger.info("Function invoked {}", t);