feat(cmd): averagePosition, command to run the entire scenario to switch to automatic base
This commit is contained in:
@ -53,3 +53,13 @@ func OnBroadcast(ctx context.Context, client *Client) (chan Broadcast, error) {
|
||||
|
||||
return ch, nil
|
||||
}
|
||||
|
||||
// OnMessageType listens for ReachView type of messages
|
||||
func OnMessageType(ctx context.Context, client *Client, messageType string) (chan Broadcast, error) {
|
||||
ch, err := OnMessage[Broadcast](ctx, client, messageType)
|
||||
if err != nil {
|
||||
return nil, errors.WithStack(err)
|
||||
}
|
||||
|
||||
return ch, nil
|
||||
}
|
||||
|
Reference in New Issue
Block a user