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`)
|
||||
}
|
||||
|
||||
answer := ""
|
||||
if session, answer = app.startSession(obj, events, bridge, nil); session != nil {
|
||||
if !bridge.writeMessage(answer) {
|
||||
return
|
||||
}
|
||||
session.onStart()
|
||||
go sessionEventHandler(session, events, bridge)
|
||||
}
|
||||
bridge.writeMessage("restartSession();")
|
||||
|
||||
default:
|
||||
if !session.handleAnswer(command, 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