func HandleClientDisconnection(ctx frontend.Service, client frontend.Client) { log.Printf("[frontend-net-client-%04d] DCONN", client.Id()) if client.UserInfos() != nil { ctx.Backend().NotifyUserConnection(client.UserInfos().Id, false) } }
func HandleClientConnection(ctx frontend.Service, client frontend.Client) { log.Printf("[frontend-net-client-%04d] CONN", client.Id()) client.Send(&msg.HelloGame{}) }