List of usage examples for org.springframework.web.socket.sockjs.frame SockJsFrame heartbeatFrame
public static SockJsFrame heartbeatFrame()
From source file:org.springframework.web.socket.sockjs.transport.session.AbstractSockJsSession.java
protected void sendHeartbeat() throws SockJsTransportFailureException { synchronized (this.responseLock) { if (isActive() && !this.heartbeatDisabled) { writeFrame(SockJsFrame.heartbeatFrame()); scheduleHeartbeat();/*from ww w .j a v a 2 s . c o m*/ } } }