Skip to content

Commit

Permalink
Update
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Neto committed Aug 7, 2024
1 parent ca5d026 commit 5a629c8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugin/YPTSocket/MessageSQLiteV2.php
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public function initPeriodicTask() {
$loop = Loop::get();
$loop->addPeriodicTimer(5, function (TimerInterface $timer) {
// Your code to execute every 5 seconds
echo "Task executed at " . date('Y-m-d H:i:s') . ' '.json_encode(self::$msgToAll).PHP_EOL;
//echo "Task executed at " . date('Y-m-d H:i:s') . ' '.json_encode(self::$msgToAll).PHP_EOL;
// You can call other methods or perform any periodic action here
if(!empty(self::$msgToAll)){
$this->_msgToAll(self::$msgToAll, \SocketMessageType::MSG_TO_ALL);
Expand Down

0 comments on commit 5a629c8

Please sign in to comment.