Someone knows that I would avoid bottlneck in my web server.
So, I'm trying to run code taking advantage of some WebSockect threads; I mean that I use CallSubDelayed from inside a WebSocket class to call routines of a code module.
There is a "little" problem: I can not call function methods, since CallSubDelayed does not returns values.
For example, I have a code module with functions to get records from a db or simply to know if a user exists.
I could use global variables (i.s. gUserExists As Boolean), but I don't know when the db query will be completed.
[In programming we are obliged to do somersaults: sooner or later we will fall without a safety net... Madhouse, wait, I'm coming ]
So, I'm trying to run code taking advantage of some WebSockect threads; I mean that I use CallSubDelayed from inside a WebSocket class to call routines of a code module.
There is a "little" problem: I can not call function methods, since CallSubDelayed does not returns values.
For example, I have a code module with functions to get records from a db or simply to know if a user exists.
I could use global variables (i.s. gUserExists As Boolean), but I don't know when the db query will be completed.
[In programming we are obliged to do somersaults: sooner or later we will fall without a safety net... Madhouse, wait, I'm coming ]