Realtime on every site you build.

WPSignal is a hosted WebSocket relay for WordPress. Install WordSocket on a client site, add ShopSocket for live orders and stock, or publish your own events from any hook. Nothing to host.

Getting Started

<Simple />

Installation

Download:
WP CLI:
Terminal
wp plugin install wordsocket --activate
Composer:
Terminal
composer require wpackagist-plugin/wordsocket

<Capabilities />

Built for WordPress developers

<Code />

Example

Readable, developer focused API

on any WordPress action hook using the fluent builder API. Add a condition, custom channel, or transform the payload: all optional.

Listen for events

The browser client auto-connects and dispatches native CustomEvents, listen with plain JavaScript or integrate with any frontend framework.

See the full guide
wp-content/plugins/{plugin}/plugin.php
add_action('wpsignal_loaded', function () {
  WPS::trigger('order.status_changed')
    ->on('woocommerce_order_status_changed', 10, 3)
    ->channel('events')
    ->data(
      fn ($order_id, $old_status, $new_status) => [
        'order_id' => $order_id,
        'old_status' => $old_status,
        'new_status' => $new_status,
        'total' => $order->get_total(),
      ])
    ->register();
});
wp-content/plugins/{plugin}/src/main.js
document.addEventListener('wpsignal:order.status_changed', (e) => {
  const { 
    order_id, 
    new_status, 
    total 
  } = e.detail.data;
  triggerFlashNotification(order_id, new_status, total);
});

<What's next />

On the roadmap

WPSignal is actively developed. Here's what's planned next.

  1. WordPress RTC Integration

    Complete

    A WebSocket sync provider for Gutenberg's real-time collaboration, powered by Yjs.

  2. WP Plugin Repository Submission

    Complete

    WordSocket is live on the WordPress.org plugin directory. Install it directly from WP Admin or via WP-CLI.

  3. ShopSocket WordPress Plugin Submission

    In progress

    ShopSocket is a WordPress plugin that adds realtime overview of shoppers on your WooCommerce store and inventory updates to your users.

  4. E2E Encryption

    Planned

    Event payloads are already encrypted before they leave WordPress over HTTPS, so the relay forwards ciphertext it cannot read. Per-user end-to-end encryption is planned.

  5. Federation

    Planned

    Interconnected sites where messages are received by all or specific sites.

  6. Shared Worker (Connection Multiplexing)

    Planned

    Allow multiple single user connections to be multiplexed through a single shared worker.

Ready to go realtime?

Free during beta. No credit card required. Sign up, connect your site, and push your first event in minutes.

Get started free Getting started guide