]>
gitweb.factorcode.org Git - factor.git/commit
http.websockets: Initial commit
Need to factor out add-origin-header and handling the connections. The
http integration is a little sloppy as well.
Try this:
"demo.piesocket.com/v3/1?api_key=oCdCMcMPQpbvNjUIzqtvF1d2X2okWpDQj4AwARJuAgtjhzKxVEjQU6IdCjwm¬ify_self=1"
<get-request> add-websocket-headers http-request* nip
[ in>> stream>> ] [ out>> stream>> ] bi dup .
[
! "hello" f 1 f send-websocket-text
[ B default-handle-websocket ] read-websocket-loop
] with-streams