File: README.md

package info (click to toggle)
witty 3.3.3%2Bdfsg-4.1
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd
  • size: 28,228 kB
  • ctags: 26,694
  • sloc: cpp: 147,809; ansic: 77,999; xml: 16,331; sh: 1,303; makefile: 198; java: 86; sql: 14
file content (31 lines) | stat: -rw-r--r-- 992 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
Codeview example
----------------

This is an example that illustrates the real-time interactivity between
multiple users, using server-push.

It shows an online editor, where multiple observers may observe another
person editing code.

How to run
----------

See the README in the parent directory.

When a user accesses the application, a new 'session' is generated
which is identified by a unique internal path, and the user will be
the 'Coder'. Other users which access this URL will become 'Observers'
for that session.

You may want to deploy the application at a particular path,
e.g. `/code`, because the application uses internal paths:
`--deploy-path=/code`, and you may also want to enable web sockets
using a custom wt_config.xml file.

What it illustrates
-------------------

- the use of server-push, using `WServer::post()` to post events to a session
- embedding server (`CodeSession`) and client (`CodeWidget`) functionality
  in a single process
- the use of internal paths