Check out the Red programming language from the same author
Rsp /


What is a SocketApp?

A socketapp is an application container for real-time web application relying on the new web sockets protocol. It basically have two parts:

  • the main module, located in the main Cheyenne process, allowing to access all client ports connected to the socketapp. This module is a REBOL script implemented using the socketapp framework.
  • an optional backend RSP script, that will provide non-blocking processing to the main module for heavier tasks (like accessing a database).

A socketapp needs a special definition entry in the configuration file (in Hosts sections):

 socket-app "/ws.rsp" ws-test-app

A largely commented example of a minimal socketapp is available in Cheyenne's sources archive. Look in %www/ws-apps/ws-test-app.r.

There's also an online example implementing a classical real-time chat demo. Chat's full sources are available both from Chat app and in Cheyenne's sources archive.

More documentation to be added...

Page last modified on March 06, 2011, at 12:26 PM
Powered by Cheyenne Web Server - © Softinnov