随笔分类 - webchat项目
摘要:1、建立WebSocket连接(调用OnOpen方法) 1)建立websocket连接 2)为集合中添加当前对象(注意线程安全) 3)广播消息 2、断开Ws连接(当关闭ws连接的时候会调用onClose方法) 3、点对点发送消息实现(字典{userid:ws的session}) 1)后台接收消息 2
阅读全文
摘要:// JQuery右键菜单插件 $(function () { context.init({preventDoubleContext: false}); context.settings({compress: true}); context.attach('#chat-view', [ {header: '操作菜单',}, {text: '...
阅读全文
摘要:1、获取当前年月日...信息的方法 1 public class CommonDate { 2 3 public final String year = String.valueOf(Calendar.getInstance().get(Calendar.YEAR)); 4 public final
阅读全文
摘要:
阅读全文