Example usage for org.springframework.web.socket.sockjs.frame SockJsFrame heartbeatFrame

List of usage examples for org.springframework.web.socket.sockjs.frame SockJsFrame heartbeatFrame

Introduction

In this page you can find the example usage for org.springframework.web.socket.sockjs.frame SockJsFrame heartbeatFrame.

Prototype

public static SockJsFrame heartbeatFrame() 

Source Link

Usage

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*/
        }
    }
}