[DCom] Live Content

[DCom] Live Content [Paid] 3.5.2

No permission to buy ($30.00)
    Nobody is reading this thread right now.
Another small improvement, would be good to extend updates to /whats-new/posts/ i.e. new posts. Currently it seems to only work for the /whats-new/ page (recent posts).
 
Last edited:
Another small improvement, would be good to extend updates to /whats-new/posts/ i.e. new posts. Currently it seems to only work for the /whats-new/ page (recent posts).
Yes, I was looking at that possibility. But now in Xenforo it is very complicated to implement these pages. If I come up with something, I will definitely add it)
 
In the "Typing..." block, is there anyway to show the username as well in addition to the user avatar?
 
Can't quite make it out, maybe it's my theme but a couple of options would be great such as duration and colour at least.

Thanks again.

I second this. Having an option to adjust duration would be great for the update highlights as well as typing blocks.
 
Hi, bug. I think it's when you enable guests on swoole:

  • ErrorException: [E_WARNING] Attempt to read property "user_id" on null
  • src/addons/DCom/LiveContent/Pub/Controller/SocketRequest.php:86
  • Generated by: Unknown account
  • Mar 28, 2025 at 10:51 PM

Stack trace​

#0 src/addons/DCom/LiveContent/Pub/Controller/SocketRequest.php(86): XF::handlePhpError(2, '[E_WARNING] Att...', '/home/darktalk/...', 86)
#1 src/XF/Mvc/Dispatcher.php(362): DCom\LiveContent\Pub\Controller\SocketRequest->actionTyping(Object(XF\Mvc\ParameterBag))
#2 src/XF/Mvc/Dispatcher.php(264): XF\Mvc\Dispatcher->dispatchClass('DCom\\LiveConten...', 'Typing', Object(XF\Mvc\RouteMatch), Object(DCom\LiveContent\Pub\Controller\SocketRequest), NULL)
#3 src/XF/Mvc/Dispatcher.php(121): XF\Mvc\Dispatcher->dispatchFromMatch(Object(XF\Mvc\RouteMatch), Object(DCom\LiveContent\Pub\Controller\SocketRequest), NULL)
#4 src/XF/Mvc/Dispatcher.php(63): XF\Mvc\Dispatcher->dispatchLoop(Object(XF\Mvc\RouteMatch))
#5 src/XF/App.php(2826): XF\Mvc\Dispatcher->run()
#6 src/XF.php(806): XF\App->run()
#7 index.php(23): XF::runApp('XF\\Pub\\App')
#8 {main}

Request state​

array(4) {
["url"] => string(32) "/index.php?socket-request/typing"
["referrer"] => string(254) "דעה *כן* פופלרית | חופש הביטוי צריך להיות מוחלט"
["_GET"] => array(1) {
["socket-request/typing"] => string(0) ""
}
["_POST"] => array(0) {
}
}
 
hmm get some error on latest version 3.3.3

socket server is running but cant connect from addon

Code:
root@debian:/www/wwwroot/domain.org# php socket_server info
----------------SWOOLE SERVER IS RUNNING----------------
Swoole version: 6.0.2           PHP version: 8.4.12
Start time                     2025-09-10 10:59:53
Connection num                                   1
Abort count                                      0
Accept count                                     1
Close count                                      0
Worker num                                      24
Task worker num                                  0
User worker num                                  0
Idle worker num                                 23
Dispatch count                                   1
Request count                                    0
Response count                                   0
Total recv bytes                               230
Total send bytes                                 0
Pipe packet msg id                               2
Concurrency                                      1
Session round                                    1
Min fd                                          66
Max fd                                          69
Worker request count                             0
Worker response count                            0
Worker dispatch count                            1
Worker concurrency                               1
Coroutine num                                    3
Coroutine peek num                               3

Code:
root@debian:/www/wwwroot/domain.org# systemctl -l status livecontent
● livecontent.service - Live Content socket server
     Loaded: loaded (/etc/systemd/system/livecontent.service; enabled; preset: enabled)
     Active: active (running) since Wed 2025-09-10 12:59:53 CEST; 3min 26s ago
 Invocation: 17e8f8328d07485cbeb86095b7554517
    Process: 1738 ExecStart=/usr/bin/php socket_server start -d (code=exited, status=0/SUCCESS)
   Main PID: 1742 (php)
      Tasks: 46 (limit: 76715)
     Memory: 81.1M (peak: 82.3M)
        CPU: 721ms
     CGroup: /system.slice/livecontent.service
             ├─1742 /usr/bin/php socket_server start -d
             ├─1743 /usr/bin/php socket_server start -d
             ├─1748 /usr/bin/php socket_server start -d
             ├─1751 /usr/bin/php socket_server start -d
             ├─1754 /usr/bin/php socket_server start -d
             ├─1755 /usr/bin/php socket_server start -d
             ├─1756 /usr/bin/php socket_server start -d
             ├─1757 /usr/bin/php socket_server start -d
             ├─1758 /usr/bin/php socket_server start -d
             ├─1759 /usr/bin/php socket_server start -d
             ├─1760 /usr/bin/php socket_server start -d
             ├─1761 /usr/bin/php socket_server start -d
             ├─1762 /usr/bin/php socket_server start -d
             ├─1763 /usr/bin/php socket_server start -d
             ├─1764 /usr/bin/php socket_server start -d
             ├─1765 /usr/bin/php socket_server start -d
             ├─1766 /usr/bin/php socket_server start -d
             ├─1767 /usr/bin/php socket_server start -d
             ├─1768 /usr/bin/php socket_server start -d
             ├─1769 /usr/bin/php socket_server start -d
             ├─1770 /usr/bin/php socket_server start -d
             ├─1771 /usr/bin/php socket_server start -d
             ├─1772 /usr/bin/php socket_server start -d
             ├─1773 /usr/bin/php socket_server start -d
             ├─1774 /usr/bin/php socket_server start -d
             └─1775 /usr/bin/php socket_server start -d

Sep 10 12:59:53 debian systemd[1]: Starting livecontent.service - Live Content socket server...
Sep 10 12:59:53 debian php[1738]: [2025-09-10 10:59:53] [TRACE] Swoole is running in daemon mode, see "ps -ef|grep socket_server".
Sep 10 12:59:53 debian systemd[1]: livecontent.service: Can't open PID file '/www/wwwroot/domain.org/src/addons/DCom/LiveContent/SocketServer/SwooleServer/swoole_server.pid' (yet?) after start: No such file or directory
Sep 10 12:59:53 debian systemd[1]: Started livecontent.service - Live Content socket server.
root@debian:/www/wwwroot/domain.org#

Code:
root@debian:/www/wwwroot/domain.org# php socket_server restart
[2025-09-10 11:05:25] [WARNING] It seems that Swoole is not running.
[2025-09-10 11:05:25] [TRACE] Swoole is running, press Ctrl+C to quit.
[2025-09-10 11:05:25] [ERROR] Uncaught exception "Swoole\Exception"([98]failed to listen server port[0.0.0.0:2020], Error: Address already in use[98]) at /www/wwwroot/domain.org/src/addons/DCom/LiveContent/vendor/cydrickn/socketio/src/Server.php:73,
#0 /www/wwwroot/domain.org/src/addons/DCom/LiveContent/vendor/cydrickn/socketio/src/Server.php(73): Swoole\Server->__construct('...', '...', 2, 1)
#1 /www/wwwroot/domain.org/src/addons/DCom/LiveContent/SocketServer/SwooleServer/Server.php(41): Cydrickn\SocketIO\Server->__construct(Array)
#2 /www/wwwroot/domain.org/src/addons/DCom/LiveContent/SocketServer/Runner.php(122): DCom\LiveContent\SocketServer\SwooleServer\Server->__construct(Array)
#3 /www/wwwroot/domain.org/src/addons/DCom/LiveContent/SocketServer/Runner.php(173): DCom\LiveContent\SocketServer\Runner->start()
#4 /www/wwwroot/domain.org/src/addons/DCom/LiveContent/SocketServer/Runner.php(57): DCom\LiveContent\SocketServer\Runner->restart()
#5 /www/wwwroot/domain.org/src/vendor/symfony/console/Command/Command.php(298): DCom\LiveContent\SocketServer\Runner->execute(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#6 /www/wwwroot/domain.org/socket_server(26): Symfony\Component\Console\Command\Command->run(Object(Symfony\Component\Console\Input\ArgvInput), Object(Symfony\Component\Console\Output\ConsoleOutput))
#7 {main}
root@debian:/www/wwwroot/domain.org#

seems have troubes to create .pid file, tryed on openlitespeed and nginx, same result
 
Last edited:
Back
Top