Websockets - Locally Hosted Alternative for Pusher (Now Free)
[deleted]
luceos Guess I just got lucky
Kyrne
Websocket stops working after a few page refreshes. The following error pops up in the browser.
[2021-06-09 19:48:15] flarum.ERROR: RuntimeException: Failed to listen on "tcp://0.0.0.0:2087": Address already in use in /var/www/flarumtr/vendor/react/socket/src/TcpServer.php:165
Stack trace:
#0 /var/www/flarumtr/vendor/react/socket/src/Server.php(36): React\Socket\TcpServer->__construct()
#1 /var/www/flarumtr/vendor/kyrne/websocket/BeyondCode/src/ServerFactory.php(116): React\Socket\Server->__construct()
#2 /var/www/flarumtr/vendor/kyrne/websocket/src/Commands/WebsocketServer.php(127): BeyondCode\LaravelWebSockets\ServerFactory->createServer()
#3 /var/www/flarumtr/vendor/kyrne/websocket/BeyondCode/src/Console/Commands/StartServer.php(259): Kyrne\Websocket\Commands\WebsocketServer->buildServer()
#4 /var/www/flarumtr/vendor/kyrne/websocket/src/Commands/WebsocketServer.php(93): BeyondCode\LaravelWebSockets\Console\Commands\StartServer->startServer()
#5 /var/www/flarumtr/vendor/illuminate/container/BoundMethod.php(36): Kyrne\Websocket\Commands\WebsocketServer->handle()
#6 /var/www/flarumtr/vendor/illuminate/container/Util.php(40): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#7 /var/www/flarumtr/vendor/illuminate/container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#8 /var/www/flarumtr/vendor/illuminate/container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#9 /var/www/flarumtr/vendor/illuminate/container/Container.php(614): Illuminate\Container\BoundMethod::call()
#10 /var/www/flarumtr/vendor/illuminate/console/Command.php(136): Illuminate\Container\Container->call()
#11 /var/www/flarumtr/vendor/symfony/console/Command/Command.php(288): Illuminate\Console\Command->execute()
#12 /var/www/flarumtr/vendor/illuminate/console/Command.php(121): Symfony\Component\Console\Command\Command->run()
#13 /var/www/flarumtr/vendor/symfony/console/Application.php(992): Illuminate\Console\Command->run()
#14 /var/www/flarumtr/vendor/symfony/console/Application.php(291): Symfony\Component\Console\Application->doRunCommand()
#15 /var/www/flarumtr/vendor/symfony/console/Application.php(167): Symfony\Component\Console\Application->doRun()
#16 /var/www/flarumtr/vendor/flarum/core/src/Console/Server.php(42): Symfony\Component\Console\Application->run()
#17 /var/www/flarumtr/flarum(24): Flarum\Console\Server->listen()
#18 {main}
[2021-06-09 19:48:17] flarum.ERROR: RuntimeException: Failed to listen on "tcp://0.0.0.0:2087": Address already in use in /var/www/flarumtr/vendor/react/socket/src/TcpServer.php:165
Stack trace:
#0 /var/www/flarumtr/vendor/react/socket/src/Server.php(36): React\Socket\TcpServer->__construct()
#1 /var/www/flarumtr/vendor/kyrne/websocket/BeyondCode/src/ServerFactory.php(116): React\Socket\Server->__construct()
#2 /var/www/flarumtr/vendor/kyrne/websocket/src/Commands/WebsocketServer.php(127): BeyondCode\LaravelWebSockets\ServerFactory->createServer()
#3 /var/www/flarumtr/vendor/kyrne/websocket/BeyondCode/src/Console/Commands/StartServer.php(259): Kyrne\Websocket\Commands\WebsocketServer->buildServer()
#4 /var/www/flarumtr/vendor/kyrne/websocket/src/Commands/WebsocketServer.php(93): BeyondCode\LaravelWebSockets\Console\Commands\StartServer->startServer()
#5 /var/www/flarumtr/vendor/illuminate/container/BoundMethod.php(36): Kyrne\Websocket\Commands\WebsocketServer->handle()
#6 /var/www/flarumtr/vendor/illuminate/container/Util.php(40): Illuminate\Container\BoundMethod::Illuminate\Container\{closure}()
#7 /var/www/flarumtr/vendor/illuminate/container/BoundMethod.php(93): Illuminate\Container\Util::unwrapIfClosure()
#8 /var/www/flarumtr/vendor/illuminate/container/BoundMethod.php(37): Illuminate\Container\BoundMethod::callBoundMethod()
#9 /var/www/flarumtr/vendor/illuminate/container/Container.php(614): Illuminate\Container\BoundMethod::call()
#10 /var/www/flarumtr/vendor/illuminate/console/Command.php(136): Illuminate\Container\Container->call()
#11 /var/www/flarumtr/vendor/symfony/console/Command/Command.php(288): Illuminate\Console\Command->execute()
#12 /var/www/flarumtr/vendor/illuminate/console/Command.php(121): Symfony\Component\Console\Command\Command->run()
#13 /var/www/flarumtr/vendor/symfony/console/Application.php(992): Illuminate\Console\Command->run()
#14 /var/www/flarumtr/vendor/symfony/console/Application.php(291): Symfony\Component\Console\Application->doRunCommand()
#15 /var/www/flarumtr/vendor/symfony/console/Application.php(167): Symfony\Component\Console\Application->doRun()
#16 /var/www/flarumtr/vendor/flarum/core/src/Console/Server.php(42): Symfony\Component\Console\Application->run()
#17 /var/www/flarumtr/flarum(24): Flarum\Console\Server->listen()
#18 {main}
[2021-06-09 19:48:19] flarum.ERROR: RuntimeException: Failed to listen on "tcp://0.0.0.0:2087": Address already in use in /var/www/flarumtr/vendor/react/socket/src/TcpServer.php:165
Stack trace:
root@flarumtr:/var/www/flarumtr# php flarum info
Flarum core 1.0.2
PHP version: 7.4.16
Loaded extensions: Core, date, libxml, openssl, pcre, zlib, filter, hash, pcntl, Reflection, SPL, session, standard, sodium, mysqlnd, PDO, xml, calendar, ctype, curl, dom, mbstring, FFI, fileinfo, ftp, gd, gettext, gmp, iconv, imap, intl, json, exif, mysqli, pdo_mysql, Phar, posix, readline, shmop, SimpleXML, soap, sockets, sysvmsg, sysvsem, sysvshm, tokenizer, xmlreader, xmlrpc, xmlwriter, xsl, zip, Zend OPcache
+----------------------------------+--------------+--------+
| Flarum Extensions | | |
+----------------------------------+--------------+--------+
| ID | Version | Commit |
+----------------------------------+--------------+--------+
| flarum-flags | v1.0.0 | |
| flarum-approval | v1.0.0 | |
| flarum-suspend | v1.0.0 | |
| flarum-subscriptions | v1.0.0 | |
| flarum-tags | v1.0.1 | |
| kyrne-websocket | 2.6.0 | |
| clarkwinkelmann-group-list | 1.0.0 | |
| miniflar-sidenav-download-button | 1.0.0 | |
| v17development-seo | v1.8.0 | |
| fof-filter | 1.0.0 | |
| fof-oauth | 1.0.0 | |
| fof-analytics | 1.0.0 | |
| zerosonesfun-direct-links | 2.1 | |
| askvortsov-moderator-warnings | v0.6.0 | |
| fof-user-directory | 1.0.1 | |
| fof-subscribed | 1.0.0 | |
| fof-spamblock | 1.0.0 | |
| fof-profile-image-crop | 1.0.0 | |
| fof-nightmode | 1.0.0 | |
| fof-formatting | 1.0.0 | |
| flarum-statistics | v1.0.0 | |
| flarum-likes | v1.0.0 | |
| flarum-sticky | v1.0.0 | |
| flarum-mentions | v1.0.0 | |
| flarum-bbcode | v1.0.0 | |
| flarum-emoji | v1.0.0 | |
| flarum-lang-english | v1.0.0 | |
| fof-best-answer | 1.0.0 | |
| fof-follow-tags | 1.0.0 | |
| fof-links | 1.0.0 | |
| fof-pages | 1.0.1 | |
| fof-sitemap | 1.0.0 | |
| fof-split | 1.0.0 | |
| fof-user-bio | 1.0.0 | |
| fof-username-request | 1.0.0 | |
| flarum-lock | v1.0.0 | |
| fof-upload | 1.0.1 | |
| clarkwinkelmann-circle-groups | 1.0.0 | |
| zerosonesfun-member | 0.2 | |
| flarum-markdown | v1.0.1 | |
| fof-drafts | 1.0.0 | |
| fof-github-autolink | 1.0.0 | |
| phenomlab-fancybox-wrapper | 0.8 | |
| fof-byobu | 1.0.0-beta.6 | |
| blomstra-cache-assets | 0.5 | |
| fof-merge-discussions | 1.0.0 | |
| flarum-lang-turkish | 1.0.2.2 | |
+----------------------------------+--------------+--------+
2.7.0
- Fixes [deleted] user bug
- Fixes user discussion pages showing a refresh when its not a discussion of theirs
- This is actually a new feature as well, those pages will refresh on new discussions
- Updates now work on specific tag pages again & tags page fixes
- Removed all loading time for updates (the button will still be there but it is instant)
- Other stuff
[deleted]
1Dot Why is it for every month what if someone need one time purchase
There is a one-time purchase here - https://extiverse.com/extension/kyrne/websocket
1Dot I cam still see deleted bug and test posting tag appearing on home
It's probably not been updated on Discuss yet.
1Dot Is it absolutely free? Can you share any link for any thing please I listened about this but I am unable to find at the moment.
yes he shared a github link which @Kyrne sir used for the websocket extensions said luceos sir. Me too want that github link so i can figure if i can do something. i can't afford $60 for a extension
[deleted]
- Edited
Has anyone else noticed that even though the new posts appear instantly in the discussion list, the notification bell doesn't update unless you refresh or reload the page manually ?
[deleted]
mekici Apart from that odd behaviour, it works fine.
[deleted]
Kyrne Thanks for this !