public class MessageMatcher extends Object
| Constructor and Description |
|---|
MessageMatcher() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
matches(String pattern,
String type,
MessageFrom message)
验证客户端消息的主题和类型
|
void |
sendMessage(org.springframework.web.socket.WebSocketSession session,
Object message) |
public boolean matches(String pattern, String type, MessageFrom message)
pattern - 与message的destination属性匹配的模板,可以是通配符message - 客户端消息type - 消息类型true 验证成功,false 验证失败public void sendMessage(org.springframework.web.socket.WebSocketSession session,
Object message)
Copyright © 2019. All rights reserved.