private void internalHandlePing(final SockJSSocket sock) { Session webSession = sock.webSession(); if (webSession != null) { webSession.setAccessed(); } SockInfo info = sockInfos.get(sock); if (info != null) { info.pingInfo.lastPing = System.currentTimeMillis(); // Trigger an event to allow custom behavior after updating lastPing checkCallHook(() -> new BridgeEventImpl(BridgeEventType.SOCKET_PING, null, sock), null, null); } }
/** * @return the Vert.x-Web session corresponding to this socket */ public io.vertx.rxjava.ext.web.Session webSession() { io.vertx.rxjava.ext.web.Session ret = io.vertx.rxjava.ext.web.Session.newInstance(delegate.webSession()); return ret; }
/** * @return the Vert.x-Web session corresponding to this socket */ public io.vertx.rxjava.ext.web.Session webSession() { io.vertx.rxjava.ext.web.Session ret = io.vertx.rxjava.ext.web.Session.newInstance(delegate.webSession()); return ret; }
private void internalHandlePing(final SockJSSocket sock) { Session webSession = sock.webSession(); if (webSession != null) { webSession.setAccessed(); } SockInfo info = sockInfos.get(sock); if (info != null) { info.pingInfo.lastPing = System.currentTimeMillis(); // Trigger an event to allow custom behavior after updating lastPing checkCallHook(() -> new BridgeEventImpl(BridgeEventType.SOCKET_PING, null, sock), null, null); } }