Bug fixing

This commit is contained in:
Alexei Anoshenko 2024-04-22 19:17:04 +03:00
parent 856b09b04b
commit 50e5b8d44d
2 changed files with 5 additions and 8 deletions

View File

@ -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) {

View File

@ -73,6 +73,10 @@ function sessionInfo() {
return message + "}";
}
function restartSession() {
sendMessage( sessionInfo() );
}
function getIntAttribute(element, tag) {
let value = element.getAttribute(tag);
if (value) {