public class GlueSimpleWebSocketHandler extends GlueAbstractWebSocketHandler
GlueAbstractWebSocketHandler ¸¦ »ó¼ÓÇÏ¿© Text ¶Ç´Â binary message¸¦ ó¸®ÇÒ ¼ö ÀÖ´Â ±âº» handler.
WebSocketÀ¸·Î ¿¬°áµÈ client µé Áß¿¡¼ sessionÀÌ alive µÇ¾î ÀÖ´Â ¸ðµç client¿¡°Ô Àü´Þ¹ÞÀº message¸¦ ÀçÀü¼Û ÇÑ´Ù.
Direct Messageµµ µ¿ÀÏÇÏ°Ô ÀçÀü¼ÛÇÑ´Ù.
See Also : GlueAbstractWebSocketHandler
Constructor and Description |
---|
GlueSimpleWebSocketHandler() |
Modifier and Type | Method and Description |
---|---|
protected void |
handleBinaryMessage(org.springframework.web.socket.WebSocketSession session,
org.springframework.web.socket.BinaryMessage message) |
void |
handleDirectMessage(String senderInfo,
byte[] txtMessage) |
void |
handleDirectMessage(String senderInfo,
org.springframework.web.socket.WebSocketMessage<?> message) |
protected void |
handleTextMessage(org.springframework.web.socket.WebSocketSession session,
org.springframework.web.socket.TextMessage message) |
void |
sendMsgToAllSessions(String senderInfo,
org.springframework.web.socket.WebSocketMessage<?> message) |
afterConnectionClosed, afterConnectionEstablished, afterPropertiesSet, destroy, handleTransportError, registerDirectSender, sendMsgToAllDirectSenders, setDirectSenderOnStartup, supportsPartialMessages, unregisterDirectSender
protected void handleTextMessage(org.springframework.web.socket.WebSocketSession session, org.springframework.web.socket.TextMessage message) throws Exception
handleTextMessage
in class org.springframework.web.socket.handler.AbstractWebSocketHandler
Exception
protected void handleBinaryMessage(org.springframework.web.socket.WebSocketSession session, org.springframework.web.socket.BinaryMessage message) throws Exception
handleBinaryMessage
in class org.springframework.web.socket.handler.AbstractWebSocketHandler
Exception
public void sendMsgToAllSessions(String senderInfo, org.springframework.web.socket.WebSocketMessage<?> message)
public void handleDirectMessage(String senderInfo, org.springframework.web.socket.WebSocketMessage<?> message) throws Exception
handleDirectMessage
in class GlueAbstractWebSocketHandler
Exception
public void handleDirectMessage(String senderInfo, byte[] txtMessage) throws Exception
handleDirectMessage
in class GlueAbstractWebSocketHandler
Exception
Copyright © 2013–2019 POSCO ICT. All rights reserved.