Linux 软件免费装
Banner图

WordSocket

开发者 wpsignal
更新时间 2026年4月13日 11:41
PHP版本: 7.4 及以上
WordPress版本: 7.0
版权: GPL-2.0-or-later
版权网址: 版权信息

标签

events collaboration push realtime websocket

下载

0.13.1 0.13.2 0.14.0 0.13.0

详情介绍:

WordSocket sends realtime events from your WordPress site to connected browsers. When content changes: a post is published, a comment is approved, an option is updated: the plugin pushes the event to subscribers instantly via WebSocket (with SSE fallback). On WordPress 7.0+, WordSocket also registers as a WebSocket-based Yjs sync provider for real-time collaborative editing in the block editor, replacing the default HTTP polling transport with a low-latency WebSocket connection. WPSignal is an independent service and is not affiliated with or endorsed by the WordPress project. Features: How it works:
  1. Install the plugin and connect to the WPSignal service.
  2. When content changes in WordPress, the plugin encrypts and publishes an HMAC-signed event to the WPSignal server.
  3. The server pushes the ciphertext to all browsers subscribed to that channel.
  4. The browser decrypts the payload and dispatches wpsignal:* DOM events. The relay never sees plaintext content.
  5. On WordPress 7.0+, the block editor uses the same WebSocket connection for collaborative editing with no extra configuration.
Third-Party Service This plugin connects to the WPSignal service at api.wpsignal.io for the following operations: Event payloads are AES-256-GCM encrypted before leaving WordPress. The WPSignal server relays ciphertext and never has access to plaintext message content. Data is delivered in realtime and is not persisted on the server.

安装:

  1. Upload the wordsocket folder to /wp-content/plugins/, or install directly from the WordPress plugin directory.
  2. Activate the plugin through the "Plugins" menu in WordPress.
  3. Go to WordSocket > Settings > Connection.
  4. Choose a connection method:
  5. Automatic (recommended): Click Connect with WPSignal. You will be redirected to the WPSignal dashboard to authorize the connection. No API key entry required.
  6. Manual: Switch to the Manual tab, paste your API key, and click Save Settings.
  7. The plugin registers with the server and saves credentials automatically.
To create an account, visit wpsignal.io.

屏幕截图:

  • Connect tab (Manual): paste your API key directly for setups where the automatic flow is unavailable.
  • Settings tab: toggle to register WordSocket as the Yjs sync provider for real-time collaborative editing in the block editor.
  • Triggers tab: no-code trigger builder — map WordPress action hooks to realtime events with channel and event name fields.
  • Explorer tab (disconnected): Event Log, Publish Test Event form, and Token Inspector panels ready to connect.
  • Explorer tab (connected): live Event Log showing an active WebSocket connection and an incoming encrypted event, with a test event published successfully.

升级注意事项:

0.14.0 Revamp admin ui, moved explorer to settings app 0.13.2 remove self-hosted text 0.13.1 Updated screenshots 0.13.0 Exclude BETA.md from plugin build 0.12.0 feat: skeleton preloader for app.feat: disable automatic authentication for non-ssl.fix: disable encryption when on non-ssl. 0.11.0 feat: skeleton preloader for app.feat: disable automatic authentication for non-ssl.fix: disable encryption when on non-ssl. 0.10.0 feat: skeleton preloader for app. feat: disable automatic authentication for non-ssl. fix: disable encryption when on non-ssl. 0.9.0 Fix: non-ssl default to manual authentication 0.7.0 Adds one-click automatic connection, a Disconnect button, and per-site JWT secrets. No configuration changes required for existing connections. To use the automatic flow on a new site, go to WordSocket > Settings > Connection > Automatic. 0.6.0 Simplified settings UI: the Server URL field has been removed. Re-enter your API Key and click Connect if your site does not show as connected after upgrading. 0.5.1 Fixes Yjs provider compatibility with WordPress 7.0 Beta 2, including collection-level sync (collaborative notes). No configuration changes required. 0.5.0 Adds PHP filters for extending JWT channel access and fixes subscribe()/unsubscribe() on SSE connections. No configuration changes required. 0.4.0 Adds relay-blind AES-256-GCM encryption for all event payloads. No configuration required: encryption is automatic after connecting. The WPSignal relay never has access to plaintext message content. 0.3.0 Adds real-time collaborative editing support for WordPress 7.0+. No configuration changes required: the collaboration provider is enabled by default and can be toggled from WordSocket > Settings. 0.2.0 Major update with new admin UI, custom triggers, and public JS API. Existing installations will continue to work: no configuration changes required.

常见问题:

What is WPSignal?

WPSignal is a realtime event delivery service for WordPress. It pushes events from your site to connected browsers the moment they happen, without polling.

Do I need a wpsignal.io account?

Yes. The plugin requires a WPSignal account to relay events. Create a free account at wpsignal.io.

What data is sent to the WPSignal server?

During registration: your site URL and name. During normal operation: AES-256-GCM encrypted event payloads (the server never sees plaintext content). On WordPress 7.0+, Yjs document updates (binary diffs of block editor content) are also relayed. All data is delivered in realtime and is not stored on the server. See our Privacy Policy for full details.

Are my event payloads private?

Event payloads are encrypted with AES-256-GCM before leaving WordPress. The encryption key is derived from your WordPress salts and site key using HKDF-SHA256, and is never sent to the WPSignal server. This means the relay cannot read your message content. Note: all logged-in users on the same site share the same derived key. Per-user message privacy is out of scope for the current version.

Does this work for logged-out visitors?

The built-in client script loads for logged-in users by default. You can enqueue the script for all visitors by adding wpsignal as a dependency to your own script.

What happens if WebSocket is unavailable?

The client falls back to SSE for receiving events. window.WPS.subscribe() and window.WPS.unsubscribe() work on SSE connections: channel changes are tracked and applied immediately via a lightweight SSE reconnect (50 ms debounce). For collaborative editing, the plugin detects the fallback and emits a "not synced" status so WordPress can surface the appropriate indicator. You can also disable the collaboration provider entirely from WordSocket > Settings > Connection to restore WordPress HTTP polling for all editors.

Does collaborative editing require WordPress 7.0?

Yes. The Yjs sync provider integration requires WordPress 7.0 or later. The plugin detects the WordPress version and only registers the provider when @wordpress/sync is available.

更新日志:

0.14.0 0.13.2 0.13.1 0.13.0 0.12.0 0.9.0 0.8.0 0.7.0 0.6.0 0.5.1 0.5.0 0.4.0 0.3.0 0.2.0 0.1.0