List of usage examples for org.springframework.web.socket.sockjs.frame SockJsFrame SockJsFrame
public SockJsFrame(String content)
From source file:org.springframework.web.socket.sockjs.client.AbstractClientSockJsSession.java
public void handleFrame(String payload) { SockJsFrame frame = new SockJsFrame(payload); switch (frame.getType()) { case OPEN:// w w w.j a v a 2 s .c om handleOpenFrame(); break; case HEARTBEAT: if (logger.isTraceEnabled()) { logger.trace("Received heartbeat in " + this); } break; case MESSAGE: handleMessageFrame(frame); break; case CLOSE: handleCloseFrame(frame); } }