7WebSocket Scripting - Echo Demonstration
Fe,
WebSocket Scripting  —  Echo Demonstration
Status:[closed]
Echo:
This:B
; per-keystroke

y
Description [+]
*
M

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

N

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

A

This demonstration is JavaScript-driven at the browser end

K

WASD_ROOT:[SRC.WEBSOCKET]WS_ECHO.HTML

P

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

K

WASD_ROOT:[SRC.WEBSOCKET]WS_ECHO.C

K

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

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


y
Configuration [+]
)
N

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