Handle Hello in calls

This commit is contained in:
Daniel 2024-10-18 09:56:31 -04:00
parent 989b429b50
commit fdabdba892

View file

@ -109,6 +109,9 @@ func main() {
play.Play(v.Call.Audio, v.Call.AudioType) play.Play(v.Call.Audio, v.Call.AudioType)
case *pb.Message_Notification: case *pb.Message_Notification:
log.Println(v.Notification.Msg) log.Println(v.Notification.Msg)
case *pb.Message_Hello:
ver := v.Hello.Version
log.Printf("server says: welcome to %s %s built %s for %s", ver.ServerName, ver.Version, ver.Built, ver.Platform)
default: default:
log.Printf("received other message not known") log.Printf("received other message not known")
} }