|
@ -152,7 +152,7 @@ function doResponse(res){
|
|
|
function loadSocket(){
|
|
|
jQuery.getScript(imurl+"/socket.io/socket.io.js").done(function() {
|
|
|
var socket = io.connect(imurl);
|
|
|
var sessionId = patientcode+"_"+request.teamCode+"_"+request.type;
|
|
|
var sessionId = patientcode+"_"+request.doctor+"_1";
|
|
|
var userInfo = JSON.parse(window.localStorage.getItem(agentName));
|
|
|
socket.emit('login', {userId: userInfo.represented?userInfo.represented:userInfo.uid, password: userInfo.represented?userInfo.represented:userInfo.uid,sessionId:sessionId,clientType:"patient"});
|
|
|
socket.on('message', function (data) {
|