Guide  Real-time chat on XenForo without running a Node server: Pusher setup, step by step

Gwendal

Developer
Moderator
Customer
Verified license
18 products BoardGameHub Classified Drafts Emporium Emporium Client GameHub GroupFlair Immersive Messenger Journey Level Plans Teams Watch Party XenCard XenPing XenSpotlight XenStaff XenStreak
Most XenForo boards run on shared hosting or a managed VPS, where you cannot keep a WebSocket server running. That is the usual reason forum chats feel slow: they ask the server for news every few seconds. The way around it is a hosted real-time service. Your forum sends each event to the service over HTTPS, and the service pushes it instantly to every open browser. Nothing extra runs on your server.

This guide uses Immersive Messenger as the example, but the principle is the same for any add-on built on the Pusher protocol.

What works without any setup​

Out of the box, Immersive Messenger works with Realtime service set to Off (polling only): each open messenger asks your server for news on a timer. The Polling interval goes from 2 to 60 seconds; lower feels faster but sends more requests to your server.

A real-time service adds instant delivery, typing indicators and online presence, and it is required for voice and video calls: until one is set up, call buttons stay hidden.

Step 1: create a Pusher Channels app​

  1. Create an account at pusher.com and open Channels (not Beams, which is for mobile push).
  2. Create an app. Choose the cluster closest to most of your members (for example eu, mt1, us2, ap1).
  3. Open App Keys and keep the page open: you need the app_id, key, secret and cluster.
Pusher has a free plan with limits on simultaneous connections and messages per day. Compare them with the number of members you usually have online at your busiest hour, and check Pusher's current pricing page before you rely on it.

Step 2: connect it in the Admin CP​

Go to Admin CP > Messenger > Options > Realtime and fill in:
  • Realtime service: Pusher Channels.
  • App ID: the number from your dashboard.
  • Key: the public key. Browsers receive it to open their connection, which is expected and safe.
  • Secret: signs the requests your server sends. It never reaches browsers; keep it private.
  • Cluster: the region code, for example eu.
  • Leave Server host and Server port empty for Pusher.
Click Test the connection before saving. It sends a signed test event with the values in the form, saved or not, and shows what Pusher answered. A wrong secret or cluster shows up here instead of in your members' browsers.

Step 3: check it on the forum​

Open the same conversation in two browsers, logged in as two different members. A message sent from one should appear in the other at once, and the typing indicator should show while you write. With real-time on, Messenger still checks the server every 20 seconds (30 in a hidden tab) as a safety net, so a message is never lost if a connection drops.

Other services​

  • Ably speaks the Pusher protocol: choose Ably (Pusher protocol) and use the keys from your Ably dashboard.
  • Your own server: if you do run a VPS, Soketi is a free, self-hosted Pusher server. Choose Soketi or another self-hosted Pusher server, enter its host name in Server host (no https://, no path) and its port (a default Soketi install listens on 6001). Keep Use TLS (https and wss) on for any public site.

Next: calls​

Once real-time works, voice and video calls can be turned on. Calls travel directly between members' browsers, and a TURN relay makes them connect on mobile data and strict office networks. That part has its own guide: Voice and video calls on XenForo: TURN relay, permissions and member privacy.

Store page: Immersive Messenger. Questions: the Messenger forum, or a private ticket if you need to share your keys or Admin CP screenshots.
 
Ready to make your forum unforgettable?Browse the storeSee the plans