51 lines · 1.1 KB · Text
RawDownload
.TH WEBSOCKET 8.SH NAMEwebsocket \- tunnel 9P over WebSocket.SH SYNOPSIS.B websocket.I "magic parameters" ....PP.Bnew WebSocket("http://server.example/magic/websocket", "9p");.SH DESCRIPTION.I Websocketis an.IR httpd (8).I magicprogram that tunnels a 9P connection over a WebSocket, allowingJavaScript programs in a web browser to interact with Plan 9 services..PPCurrently, it always mounts the connection over.B /dev/and launches.IR acme ,which expects the.B /dev/drawprovided by.IR 9webdraw ..SH SOURCE.B /sys/src/cmd/ip/httpd/websocket.c.PP.B https://bitbucket.org/dhoskin/weebsocket/.SH "SEE ALSO".IR intro (5),.IR httpd (8).PP.B https://bitbucket.org/dhoskin/9webdraw.SH BUGSThe command.B /bin/acmeis hardcoded..PPNo authentication is performed, and raw 9P is used rather than.IR cpu (1)'sprotocol..PPRather than hardcoding 9P, plugins for different protocols couldbe chosen using the WebSocket subprotocol header..PPRather than running under.IR httpd (8),.I websocketcould present a standard network connection directory in.BR /net/websocket .