WebSocket Scripting  —  Echo Demonstration
Status: [closed]
Echo:
This:
 per-keystroke

Description [+]

This is a demonstrator for the asynchronous, bi-directional network channel provided by a WebSocket.
This application handles multiple, concurrent clients.

Enter a string into the This: field and it will be echoed back with a counter. Set [x]per-keystroke and each key pressed will be echoed. A heart-beat timer is displayed in the status area.

This demonstration is JavaScript-driven at the browser end

WASD_ROOT:[SRC.WEBSOCKET]WS_ECHO.HTML

and uses a WebSocket protocol application (script) at the WASD server end

WASD_ROOT:[SRC.WEBSOCKET]WS_ECHO.C

This application uses the VMS string descriptor API of wsLIB (both as an example and as a test-bench).

All of these interactions can be observed using the WASD WATCH facility; [x]CGI, [x]DCL and [x]Network Data items.

Configuration [+]

The script is a native WebSocket protocol application and so the executable should only need placing in the script directory.