From 1bfaaa331d449189b4bbc2da2e71bc59a054bf58 Mon Sep 17 00:00:00 2001 From: Jeff Carr Date: Sun, 12 May 2019 06:07:22 +0000 Subject: [PATCH] ready to attempt returning a protobuf Signed-off-by: Jeff Carr --- gorilla-server/main.go | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/gorilla-server/main.go b/gorilla-server/main.go index f7a2771..535cb9d 100644 --- a/gorilla-server/main.go +++ b/gorilla-server/main.go @@ -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 import "flag" @@ -10,10 +5,6 @@ import "io" import "log" import "net/http" -// import "time" -// import "errors" -// import "unicode/utf8" - import "github.com/gorilla/websocket" 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("recv binary: %s", pdata) + if pdata.Type == pb.Event_MIGRATE { + log.Printf("GOT MIGRATE") + } } } }