public class SocketSessionUtil extends Object
| Constructor and Description |
|---|
SocketSessionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static void |
send(javax.websocket.Session session,
String msg)
发送消息
|
static void |
send(org.springframework.web.socket.WebSocketSession session,
String msg) |
public static void send(javax.websocket.Session session,
String msg)
throws IOException
session - 会话对象msg - 消息IOException - 异常public static void send(org.springframework.web.socket.WebSocketSession session,
String msg)
throws IOException
IOExceptionCopyright © 2017–2022. All rights reserved.