[MMO] Centrifugo 2.3.6 does not automatically initialize the WebSocket connection.
The following are loaded correctly on every page:
- centrifuge.min.js
- realtime.min.js
- XF.config.centrifugo with host, path, token and instance
- valid JWT token
The Centrifugo API connection also works, and the WebSocket endpoint returns HTTP 101.
However, realtime.min.js only defines:
MMO.Centrifuge.Manager.init()
There is no call to this method anywhere in the JS files, add-on source or compiled templates. Therefore no WebSocket connection is opened automatically. Calling this manually in the browser console: MMO.Centrifuge.Manager.init()
immediately establishes a successful WebSocket connection.
Centrifugo then reports one connected client and user.This appears to be a regression introduced with the 2.3.6 “single instance” rework, since the 2.3.2 changelog states that the Centrifuge JS and connection are loaded on all pages.