打印/下载
使用

引入

import vip.webmis.java.library.Socket;

发送消息

@RequestMapping("/socket")
String socket() {
  HashMap<String,Object> msg = new HashMap<String,Object>();
  msg.put("type","msg");
  msg.put("uid","1");
  msg.put("msg","Web方式");
  Socket.send("admin",msg);
  return "";
}
{{copy}}