History

Make Go proxy use binary WebSockets.

dhoskin committed 13 years ago

Commit ab742111 parent 00d0f541 file · +3 −6Browse files

Unified · Split

proxy.go+3−6
@@ -3,16 +3,13 @@ package main · 2 unmodified lines
3import (3import (
4 "code.google.com/p/go.net/websocket"4 "code.google.com/p/go.net/websocket"
5 "os/exec"5 "os/exec"
6/* "encoding/base64"6 "io"
7 "flag"7 "net/http"
8*/ "io"
9/* "log"
10 "net"
11*/ "net/http"
12)8)
13 9
14func srv9p(ws *websocket.Conn){10func srv9p(ws *websocket.Conn){
15 defer ws.Close();11 defer ws.Close();
12 ws.PayloadType = websocket.BinaryFrame;
16 13
17 srvcat := exec.Command("srvcat", "webdraw");14 srvcat := exec.Command("srvcat", "webdraw");
18 stdin, err := srvcat.StdinPipe();15 stdin, err := srvcat.StdinPipe();