Introduction to XenForo WebSockets
WebSockets is a protocol designed to exchange information in real time. With it, we can notify users about any events on the forum: alerts, messages, reactions, and so on.
This add-on allows developers to conveniently use this protocol in XenForo.
This means that by configuring this add-on once, other add-ons will be able to use its capabilities without the need for a separate websockets configuration.
#Requirements
- PHP 7.4 or newer
- XenForo 2.2.0 or newer
If you are going to run your own websocket server:
- Python 3.x
- GIT
- The gcc compiler and the dependencies for build
- NPM
- Node.js LTS (14.x, 16.x, 18.x, so on)
#Installation
- Install the add-on by first uploading the files to the server or using the "Install from archive" function in the control panel.
- Set up a websocket server.