Skip to main content

Instant Messages Delivery

The WebSocket version delivers messages instantly to all recipients using persistent WebSocket connections.

How it works

Unlike AJAX polling which checks for updates every few seconds, WebSocket maintains a live connection between the browser and the server. Messages appear the moment they are sent — up to 200x faster than AJAX mode. The WebSocket connection is managed through a shared infrastructure that routes events between users without storing message content.

A single WebSocket connection is shared across all browser tabs using a SharedWorker, ensuring efficient resource usage regardless of how many tabs the user has open.

Key capabilities

  • Instant message delivery without polling delay
  • Up to 200x faster than AJAX mode
  • Persistent connection maintained in the background
  • Single shared connection across all browser tabs
  • Automatic reconnection if connection is interrupted
  • Works on all modern browsers

How to enable

Purchase and activate the WebSocket license, then navigate to WP AdminBetter MessagesSettingsGeneral and set the Mechanism to WebSocket.