cancel supporting websocket

This commit is contained in:
wenyekui 2014-07-29 11:02:13 +08:00
parent fab9d46c4d
commit f8e9308a0d
3 changed files with 0 additions and 10 deletions

View File

@ -3,7 +3,6 @@
. ./dev.sh . ./dev.sh
go get -u github.com/siddontang/go-log/log go get -u github.com/siddontang/go-log/log
go get -u github.com/siddontang/go-websocket/websocket
go get -u github.com/siddontang/go-snappy/snappy go get -u github.com/siddontang/go-snappy/snappy
go get -u gopkg.in/mgo.v2/bson go get -u gopkg.in/mgo.v2/bson
go get -u github.com/ugorji/go/codec go get -u github.com/ugorji/go/codec

View File

@ -134,7 +134,6 @@ func (app *App) httpServe() {
mux := http.NewServeMux() mux := http.NewServeMux()
mux.Handle("/ws", &WsHandler{app.Ledis()})
mux.Handle("/", &CmdHandler{app.Ledis()}) mux.Handle("/", &CmdHandler{app.Ledis()})
svr := http.Server{Handler: mux} svr := http.Server{Handler: mux}

View File

@ -154,11 +154,3 @@ func writeMsgPack(result interface{}, w http.ResponseWriter) {
log.Error(err.Error()) log.Error(err.Error())
} }
} }
type WsHandler struct {
Ldb *ledis.Ledis
}
func (h *WsHandler) ServeHTTP(w http.ResponseWriter, r *http.Request) {
w.Write([]byte("ws handler"))
}