Wow!
2.02 is very fast page loading! Rockets are jealous...
Logo fixed (with or without sidebar)!
Template and Feedback are up to 2.02 standard!
I do have many : Waiting for value (11 ms) in release mode in IDE logs ( normal ?) .
the uuid logged:
---Employees uuid: Employees27633040-f0e1-466c-8342-9dd72944d263
---AboutPage uuid: AboutPage27633040-f0e1-466c-8342-9dd72944d263
---ProdPage uuid: ProdPage27633040-f0e1-466c-8342-9dd72944d263
---HomePage uuid: HomePage27633040-f0e1-466c-8342-9dd72944d263
My WebSocket_Connected sub... same just includes page name in logs so I know which page did what / when...
Private Sub WebSocket_Connected(WebSocket1 As WebSocket)
Log(" ----"&Name&" view ws Connected")
ws = WebSocket1
Dim session As HttpSession = ws.UpgradeRequest.GetSession ' NEW 2.01
If ABMShared.NeedsAuthorization Then
If session.GetAttribute2("IsAuthorized", "") = "" Then
ABMShared.NavigateToPage(ws, "../")
Return
End If
End If
Dim myUUID As String = ABM.getUUID(Name,ws) ' NEW 2.02
If (session.HasAttribute(myUUID) = False) Or (session.HasAttribute("ABMNewSession") = True) Then ' NEW 2.01 (*1*)
Log(" saving "&Name&" view session")
' IMPORTANT!
session.RemoveAttribute("ABMNewSession")
' IMPORTANT: Redim to reinit the page object
Dim page As ABMPage
' reload the BuildPage
BuildPage
' connect our page with the websocket
page.SetWebSocket(ws)
' Prepare the page
page.Prepare
' save at least page
session.SetAttribute(myUUID , page)
' And all other variables you need for your program
InitPublicVars
page.SaveSessionVariables(Me, session)
' page.Prepare
Else ' (*2*)
' restore the page
Log("Loading "&Name&" session")
' load at least the page
page = session.GetAttribute(myUUID)
' and load all your own variables previously saved
page.RestoreSessionVariables(Me, session , myUUID)
' connect our page with the websocket
page.SetWebSocket(ws)
' refresh the page
page.Refresh
' because we use ShowLoaderType=ABM.LOADER_TYPE_MANUAL
page.FinishedLoading
End If
Log(" ---"&Name&" uuid: "&myUUID)
End Sub
Two words:
SHIP IT! (as project managers are always shouting - regardless the state of stability).
( aaahhh... perhaps wait for other testers to respond.... )
I will upload copy to my server and try it out over the net... and respond.