diff --git a/src/recipient/recipient.go b/src/recipient/recipient.go index 981ef2e..cfe77a6 100644 --- a/src/recipient/recipient.go +++ b/src/recipient/recipient.go @@ -196,18 +196,11 @@ func receive(serverAddress, serverTCP string, isLocal bool, c *websocket.Conn, c } else { // read from TCP connection message, err = tcpConnection.Read() - // if bytes.Equal(message, []byte("end")) { - // break - // } } if err != nil { log.Error(err) return err } - fmt.Println(string(message)) - - // // tell the sender that we recieved this packet - // c.WriteMessage(websocket.BinaryMessage, []byte("ok")) // do decryption var enc crypt.Encryption diff --git a/src/tcp/tcp.go b/src/tcp/tcp.go index 34e568a..393e037 100644 --- a/src/tcp/tcp.go +++ b/src/tcp/tcp.go @@ -34,6 +34,9 @@ func Run(debugLevel, port string) { if err != nil { log.Error(err) } + + // TODO: + // delete old rooms } func run(port string) (err error) {