summaryrefslogtreecommitdiffstats
path: root/cmd
diff options
context:
space:
mode:
Diffstat (limited to 'cmd')
-rw-r--r--cmd/client/main.go5
1 files changed, 4 insertions, 1 deletions
diff --git a/cmd/client/main.go b/cmd/client/main.go
index 061efdc..c362247 100644
--- a/cmd/client/main.go
+++ b/cmd/client/main.go
@@ -2,6 +2,7 @@ package main
import (
"flag"
+ "fmt"
"log"
"net"
"strings"
@@ -42,7 +43,7 @@ func main() {
panic(err)
}
- auth := core.Auth{user, "pass"}
+ auth := core.Auth{user, "valid"}
if err := core.Send(conn, auth); err != nil {
panic(err)
}
@@ -67,6 +68,8 @@ func handlePayload(conn net.Conn, payload any) {
switch v := payload.(type) {
case core.Message:
handleMessage(conn, v)
+ default:
+ fmt.Println(payload)
}
}