B4J Question [BANanoServer] [SOLVED] What happened to b4j_ws?

Mashiane

Expert
Licensed User
Ola

Just started exploring the 2 demo examples in the WebServer overview thread and noted this..

B4X:
'add a filter that will create the session before the websocket upgrade request.
    'this is required for Safari to work properly with WebSocket sessions.
    srvr.AddFilter("/b4j_ws.js", "SessionCreator", False)
I remember, ABM was also using this. For BANanoServer, do we have to take care of this too or its sorted?

Thanks

#QuestionsFromBANanoServerDummies
 

Harris

Expert
Licensed User
ABM was also using this
Deprecated in the latest ABM... (451) - no longer used....

B4X:
    '----------------------MODIFICATION 3.20-------------------------------
    ' register the session creator handler - no static file is created because it is handler and will not be cached by the browser
    srvr.AddHandler("/js/sessioncreator.js", "ABMSessionCreator", False)
    '----------------------MODIFICATION 3.20-------------------------------
 

alwaysbusy

Expert
Licensed User
Indeed, this is a remainder of an old test Mindful and I did to get the cache working optimal. I remember us spending weeks, day and night, fine tuning this part. Good times... Just one of the many reasons to use the ABMServer or BANanoServer instead of having to write this yourself. One small misstep here and your server will run less than optimal.
 
Last edited:
Top