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
33 import (
44 "code.google.com/p/go.net/websocket"
55 "os/exec"
6−/* "encoding/base64"
7− "flag"
8−*/ "io"
9−/* "log"
10− "net"
11−*/ "net/http"
6+ "io"
7+ "net/http"
128 )
139
1410 func srv9p(ws *websocket.Conn){
1511 defer ws.Close();
12+ ws.PayloadType = websocket.BinaryFrame;
1613
1714 srvcat := exec.Command("srvcat", "webdraw");
1815 stdin, err := srvcat.StdinPipe();