Closed webonix closed 4 months ago
after getting this error, the thread stops running
2024-04-23 15:18:53 calling [onMessage] via reflection, Lucee restart needed! 2024-04-23 15:18:53 calling [onError] via reflection, Lucee restart needed!
public static function onFirstOpen(wsclients) {
systemOutput("--- events WS onFirstOpen(#arguments.KeyList()#) ---",1,0);
static.wsclients = arguments.wsclients; // store it so every functions can use it
variables.connections = {};
thread
timeout=0
// oClients=static.wsclients
{
while(true) {
try {
sleep(1000);
systemOutput('AJM redisCommand loop [#!isNull(item)#] for oClients.size() clients',1,0);
if( !isNull(item) ) {
//oClients.broadcast(item);
}
}
catch(e) {
systemOutput('Error:#e.message#',1,1 );
sleep(10000);
}
}
}
}