ready to attempt returning a protobuf

Signed-off-by: Jeff Carr <jcarr@wit.com>
This commit is contained in:
Jeff Carr 2019-05-12 06:07:22 +00:00
parent 0ad98fe594
commit 1bfaaa331d
1 changed files with 3 additions and 9 deletions

View File

@ -1,8 +1,3 @@
// Copyright 2013 The Gorilla WebSocket Authors. All rights reserved.
// Use of this source code is governed by a BSD-style
// license that can be found in the LICENSE file.
// Command server is a test server for the Autobahn WebSockets Test Suite.
package main package main
import "flag" import "flag"
@ -10,10 +5,6 @@ import "io"
import "log" import "log"
import "net/http" import "net/http"
// import "time"
// import "errors"
// import "unicode/utf8"
import "github.com/gorilla/websocket" import "github.com/gorilla/websocket"
import "github.com/golang/protobuf/proto" import "github.com/golang/protobuf/proto"
@ -56,6 +47,9 @@ func eventHandler(w http.ResponseWriter, r *http.Request) {
log.Printf("readConn() something fucked up happened in Unmarshal") log.Printf("readConn() something fucked up happened in Unmarshal")
} }
log.Printf("recv binary: %s", pdata) log.Printf("recv binary: %s", pdata)
if pdata.Type == pb.Event_MIGRATE {
log.Printf("GOT MIGRATE")
}
} }
} }
} }