Linux 软件免费装
Banner图

Hibira Realtime

开发者 hibira
更新时间 2026年11月6日 13:24
PHP版本: 7.4 及以上
WordPress版本: 7.1
版权: GPLv2 or later
版权网址: 版权信息

标签

woocommerce notifications realtime websocket live comments

下载

0.1.2

详情介绍:

Hibira Realtime makes your site update while people are looking at it. It uses Hibira, a hosted realtime service that speaks the Pusher Channels protocol, so your server never holds WebSocket connections open. Pages stay cacheable. Hibira's free plan (no card) covers a typical blog: 100 concurrent connections and 200,000 messages a day. External service This plugin connects to Hibira (ws.hibira.io by default, or the host you set): Hibira's terms and privacy policy. Source code and libraries The plugin's source, with its tests, is at github.com/hibira-io/wordpress. assets/vendor/pusher.min.js is the minified build of pusher-js 8.6.0 (MIT), unchanged except for the removed source map comment. Its source is at github.com/pusher/pusher-js, and the same file can be built with npm install pusher-js@8.6.0 (dist/web/pusher.min.js).

安装:

  1. Install and activate the plugin.
  2. Create a free app at hibira.io, open it and copy the app ID, key and secret.
  3. Go to Settings → Hibira, paste them, choose the features, and press Send a test event.
To keep the secret out of the database, put it in wp-config.php instead: define( 'HIBIRA_APP_SECRET', 'your-secret' ); HIBIRA_APP_ID, HIBIRA_APP_KEY and HIBIRA_HOST work the same way.

常见问题:

Does it work with page caching?

Yes. Pages are served from the cache as usual; the live parts connect from the browser. Visitors' auth requests (readers now, guest order pages) do not need a nonce.

Do I need Pusher?

No. Hibira speaks the same protocol as Pusher Channels, so the plugin uses the standard pusher-js library pointed at Hibira. It also works with another Pusher-compatible server if you set its host and port.

How much does it cost?

Each event counts as one message, however many readers receive it. Readers now uses presence channels: each open tab is one connection, and a channel shows at most 100 members, so busier posts show "100+".

My theme's comments look different from the live ones

Live comments use WordPress's classic comment markup (li.comment > article.comment-body). To change what is sent, use the hibira_comment_payload filter.

更新日志:

0.1.2 0.1.1 0.1.0