#WebSocket - Teletype
FQ@†
WebSocket  —  Teletype
Connection:[unopened]
™Teletype:
WebSocket:MY[RQRQ¨X
y
Description [+]
*
K

Teletype™ was a trademark of the Teletype Corporation ofSkokie, Illinois, USA.Q
 The author owned and operated a hobbyistOASR33 Teletype@in the late (19)70's. This one is easier on the ears!

P

This example emulates a Teletype-style interface, receiving and displaying (8Ibit) ASCII characters received from, and transmitting keyboard data to, aNterminal session (pseudo-terminal driver). The browser application provides aGvery dumb-terminal with insignificant ANSI/ECMA control sequenceOsupport, nor should it be considered an implementation of RFC854. When openedNthe WebSocket attempts to connect to the WASD server the page is served from. NThe application converts WebSocket UTF-8 frames arriving from the browser intoJ8 bit ASCII sent to the service, and 8 bit ASCII from the service into WebMSocket UTF-8 frames when sent to the browser. As is fundamental to WebSocketNenvironments this connection is asynchronous and bi-directional,/suitable even for interactive applications.

A

This demonstration is JavaScript-driven at the browser end

K

WASD_ROOT:[SRC.WEBSOCKET]WS_PTD.HTML

P

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

K

WASD_ROOT:[SRC.WEBSOCKET]WS_PTD.C

I

Of course all of these interactions can be observed using WASD's WATCH7facility; [x]CGI, [x]DCL and [x]Network Data items.


y
Configuration [+]
)


CAUTIONL

This WebSocket application allows remote login from a Web browser to theIserver system. This could be a security issue and so the script disablesJitself by default. Logical name value WS_PTD_ENABLE controls whether thisLscript can be used. Define this system-wide using a value of "*" to simplyJallow experimentation. Alternatively provide one or more comma-separated,Idotted-decimal IP address to specify one or more hosts allowed to use thescript.

For example:)

  $ DEFINE /SYSTEM WS_PTD_ENABLE "*".  $ DEFINE /SYSTEM WS_PTD_ENABLE "192.168.1.2":  $ DEFINE /SYSTEM WS_PTD_ENABLE "192.168.1.2,192.168.1.3"