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,1503405566]]

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.