标签:ESS nec create tar room geo send style define
//消息初始化 MsgInit() { let that = this; hubs.init(); //需要指定服务端的ip $.connection.hub.url = `${mapUrl.SIGNALR_URL}/signalr`; var chat = $.connection.GeoHub; //错误提示 chat.client.showmessage = function(message) {}; //得到后台发送加入信息 chat.client.joinroom = function(message) {}; chat.client.getroomlist = function(data) {}; chat.client.getuserlist = function(data) {}; //收到某人发送相关消息 chat.client.sendmessage = function(message) { message = JSON.parse(message); if (message != null && message != undefined) { // to do } }; //启动链接 $.connection.hub.start().done(function() { var roomName = "room"; let result = chat.server.createRoom(roomName); }); },
标签:ESS nec create tar room geo send style define
原文地址:https://www.cnblogs.com/amadoGrowers/p/12048317.html