mirror of https://github.com/anoshenko/rui.git
Bug fixing
This commit is contained in:
parent
856b09b04b
commit
50e5b8d44d
|
@ -269,14 +269,7 @@ func (app *application) socketReader(bridge *wsBridge) {
|
||||||
ErrorLog(`"session" key not found`)
|
ErrorLog(`"session" key not found`)
|
||||||
}
|
}
|
||||||
|
|
||||||
answer := ""
|
bridge.writeMessage("restartSession();")
|
||||||
if session, answer = app.startSession(obj, events, bridge, nil); session != nil {
|
|
||||||
if !bridge.writeMessage(answer) {
|
|
||||||
return
|
|
||||||
}
|
|
||||||
session.onStart()
|
|
||||||
go sessionEventHandler(session, events, bridge)
|
|
||||||
}
|
|
||||||
|
|
||||||
default:
|
default:
|
||||||
if !session.handleAnswer(command, obj) {
|
if !session.handleAnswer(command, obj) {
|
||||||
|
|
|
@ -73,6 +73,10 @@ function sessionInfo() {
|
||||||
return message + "}";
|
return message + "}";
|
||||||
}
|
}
|
||||||
|
|
||||||
|
function restartSession() {
|
||||||
|
sendMessage( sessionInfo() );
|
||||||
|
}
|
||||||
|
|
||||||
function getIntAttribute(element, tag) {
|
function getIntAttribute(element, tag) {
|
||||||
let value = element.getAttribute(tag);
|
let value = element.getAttribute(tag);
|
||||||
if (value) {
|
if (value) {
|
||||||
|
|
Loading…
Reference in New Issue