forked from mbk-lab/rui_orig
upstream: Bug fixing
This commit is contained in:
parent
882e9bcce3
commit
08dc88ca86
|
@ -156,14 +156,7 @@ func (app *application) socketReader(bridge webBridge) {
|
|||
ErrorLog(`"session" key not found`)
|
||||
}
|
||||
|
||||
answer := ""
|
||||
if session, answer = app.startSession(obj, events, bridge); session != nil {
|
||||
if !bridge.writeMessage(answer) {
|
||||
return
|
||||
}
|
||||
session.onStart()
|
||||
go sessionEventHandler(session, events, bridge)
|
||||
}
|
||||
bridge.writeMessage("restartSession();")
|
||||
|
||||
case "answer":
|
||||
session.handleAnswer(obj)
|
||||
|
|
|
@ -73,6 +73,10 @@ function sessionInfo() {
|
|||
return message + "}";
|
||||
}
|
||||
|
||||
function restartSession() {
|
||||
sendMessage( sessionInfo() );
|
||||
}
|
||||
|
||||
function getIntAttribute(element, tag) {
|
||||
let value = element.getAttribute(tag);
|
||||
if (value) {
|
||||
|
|
Loading…
Reference in New Issue