[WordPress] 外掛分享: WordSocket

首頁外掛目錄 › WordSocket
WordPress 外掛 WordSocket 的封面圖片
全新外掛
安裝啟用
★★★★★
5/5 分(1 則評價)
剛更新
最後更新
問題解決
WordPress 6.7+ PHP 8.2+ v0.21.1 上架:2026-03-29

內容簡介

WordSocket 外掛可將 WordPress 網站的即時事件傳送至連接的瀏覽器,實現即時內容更新和協作編輯。當內容變更時,外掛會透過 WebSocket 即時推送事件,提升用戶互動體驗。

【主要功能】
• 即時推送內容變更事件
• 支援 Gutenberg 協作編輯
• 自動連接與手動連接選項
• AES-256-GCM 加密事件負載
• 自訂觸發器以映射 WordPress 行動鉤子
• 短期 JWT 令牌自動刷新

外掛標籤

開發者團隊

⬇ 下載最新版 (v0.21.1) 或搜尋安裝

① 下載 ZIP → 後台「外掛 › 安裝外掛 › 上傳外掛」
② 後台搜尋「WordSocket」→ 直接安裝(推薦)
📦 歷史版本下載

原文外掛簡介

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).
When real-time collaboration is available (currently via the Gutenberg plugin, ahead of its arrival in WordPress core), WordSocket also registers as a WebSocket-based Yjs sync provider for realtime 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:

One-click automatic connection via the WPSignal dashboard (no API key required)
Manual connection via API key for advanced setups
Disconnect button with inline confirmation: the site is archived on the server, its usage history is kept, and reconnecting the same URL restores it
WebSocket-first with automatic SSE fallback
Per-site JWT signing secrets: each site’s connection tokens are cryptographically isolated
AES-256-GCM encrypted event payloads: the WPSignal relay receives ciphertext only and never has access to plaintext message content
Admin toggle to disable the collaboration provider and fall back to WordPress HTTP polling
Built-in triggers for post updates and custom post types
Custom trigger builder: map any WordPress action hook to a realtime event
Public JavaScript API (window.WPS) for themes and plugins to share the connection
Extensible connection token: wpsignal_token_channels and wpsignal_token_channel_prefixes filters let other plugins add channels and namespace permissions to the JWT without modifying core
Admin explorer page with live event log, publish form, and token inspector
Short-lived JWTs (5 min) with automatic refresh

How it works:

Install the plugin and connect to the WPSignal service.
When content changes in WordPress, the plugin encrypts and publishes an HMAC-signed event to the WPSignal server.
The server pushes the ciphertext to all browsers subscribed to that channel.
The browser decrypts the payload and dispatches wpsignal:* DOM events. The relay never sees plaintext content.
When real-time collaboration is available on the site, the block editor uses the same WebSocket connection for collaborative editing with no extra configuration.

Real-Time Collaboration
WordSocket ships a WebSocket sync provider for the block editor’s real-time collaboration feature. Three things need to be true for it to activate:

The Gutenberg plugin is active. Real-time collaboration was removed from WordPress core before the 7.0 release; until it ships in core, the feature is only available through the Gutenberg plugin.
Real-time collaboration is enabled under Gutenberg > Experiments > Enable real-time collaboration (Gutenberg 23.8 and later; earlier versions used Settings > Writing).
The site is connected to WPSignal, since the provider shares the plugin’s WebSocket connection.

The WordSocket Settings tab shows a “Gutenberg detected” badge when the feature is available on your site. Once active, everything collaboration syncs travels over the WebSocket instead of HTTP polling: document updates, cursors and presence, and collaborative notes. If the connection drops, the provider reconnects with increasing delays; after repeated failures the editor shows its standard “connection lost” dialog, and documents re-sync when the connection returns. If a site’s credentials are revoked, the editor reports an authentication error instead of retrying forever. The site editor does not use sync providers (core disables collaboration there). Disabling the provider from the Settings tab restores WordPress HTTP polling for all editors.
Third-Party Service
This plugin connects to the WPSignal service at api.wpsignal.io for the following operations:

Site registration: when you connect in the admin (via the automatic one-click flow or by entering an API key manually), the plugin registers your site with the server and receives credentials.
Event publishing: when a trigger fires (e.g. a post is saved), the plugin sends an encrypted, HMAC-signed HTTP request to the server.
Realtime connections: logged-in users’ browsers connect to the server via WebSocket or SSE to receive events.

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.

Terms of Service
Privacy Policy

Setup

Showcase
Below are a few examples showcasing the possibilities with WP Signal + WordSocket. Repository https://github.com/wpsignal/wordsocket-examples
Living Posts – Interactivity API

Source code: https://github.com/wpsignal/wordsocket-examples
Bidirectional Realtime Chat Plugin

Realtime Poker Plugin

Open Source
https://github.com/wpsignal/wordsocket

延伸相關外掛

文章
Filter
Mastodon