Websockets - Locally Hosted Alternative for Pusher (Now Free)
3.0.3
- Fix statistics saving
- Reverse graph order
- Fix
flarum/statistics
conflict
Please restart the websocket server after updating!
- Edited
HD3D Apache will not have any effect on the setup of the websocket server using my methods. You will only need to utilize the nginx portion. Check the GitHub page for detailed instructions on how to set that up.
If you want to use Apache for it I cannot provide support, I've never attempted it and it doesn't seem like the best method to me as Apache wasn't built with proxy-ing in mind.
- Edited
Kyrne Ok thanks
I'm now using websockets with Option 2 - Websocket server handles SSL
Everything seems to work great but I'm noticing that my forum is hanging after a few minutes and becomes all discussions disappear, it can't be refresh by clicking on the forum logo but only by refreshing the browser's refresh button and then it works for a few minutes and so on
Also, After running php flarum websocket:serve
it is running for minutes, am I suppose to just close the putty like that?
Below is the screenshot of putty constantly running for minutes after running php flarum websocket:serve command
Edit:
I notice that my server is getting automatic restart
These are the console errors when forum goes on blank and refresh mode
Edit2:
Another issue I'm facing is that websockets runs only if I run "php flarum websocket:serve" command in putty and let it run, websockets stops working as soon as I close putty
- Edited
HD3D The php flarum websocket:serve command needs to run constantly. The websocket does not work because the nu command stops working as soon as you exit the console. There are several ways to make this command run continuously. I am using Supervisor. I advise. https://flarumtr.com/d/2293-flarumda-supervisor-usage Here I have explained the supersisior setup and its configuration for websocket. But Turkish.
https://discuss.flarum.org/d/28052-realtime-self-hosted-websocket-for-instant-updates You can also check this for supervisor usage.
HD3D Another issue I'm facing is that websockets runs only if I run "php flarum websocket:serve" command in putty and let it run, websockets stops working as soon as I close putty
This is to be expected. Simplest workaround is nohup php flarum websocket:serve &
. If the machine is running systemd, I would create a systemd service unit.
mekici tuxmain streaps Thanks for the help guys
@Kyrne I have successfully configured websockets through Option 1 - Proxy w/ SSL (Recommended) but there are some issues I'm facing..
Cleared cache, purged CF cache but I still see the text below
When I click on the yellow bar to refresh, it throws the below error on my console
3.0.4
- Fix byobu compat
@Kyrne There is an issue with fof/polls too (probably because the pusher object provided by this extension isn't 100% like the one provided by pusher), I reported it last week on the extension GitHub but maybe it is more of a problem on your side?
Wooohoo it works very well thanks!
There is only a weird translation problem on my side, the "discussion update" button (kyrne-websocket.forum.discussion_list.show_updates_text
) does not appear on the forum. In place I have kyrne-websocket.ADMIN.discussion_list.show_updates_text
, without translation: