Server-client messaging over HTTP

X-Messages lets you easily send messages to a client using a HTTP header. The spec defines a compact JSON format for sending multiple messages with minimal overhead, that is simple to parse and quickly integrates into any existing code.

This is a basic example of an X-Messages HTTP header:

  X-Messages: [["This is an example message sent from the server",2,1732166725]]

The JSON format of the X-Messages header is an Array of Arrays. This avoids defining objects in system which are not object-orientated or do not support them. The example above is displayed by this website with the following format:

To learn more see the specification, or check out the libraries already available in your required programming language.

CodeMessageLineFile
2session_start(): open(/var/cpanel/php/sessions/ea-php82/sess_8bc7cf11d92a4434b303cfc69e2a99d3, O_RDWR) failed: No such file or directory (2)67/home1/xmorg/public_html/pagetype/cms.php
2session_start(): Failed to read session data: files (path: /var/cpanel/php/sessions/ea-php82)67/home1/xmorg/public_html/pagetype/cms.php
8192Creation of dynamic property PageTypeCMS::$html is deprecated43/home1/xmorg/public_html/pagetype/plugins/html/pagetype.plugin.php