# tmux.NotificationStream.Subscribe

- **Module:** tmux.NotificationStream
- **Package:** github.com/libtmux/libtmux-go/tmux
- **Language:** Go
- **Kind:** method
- **Source:** https://github.com/libtmux/libtmux-go/blob/52968a3181c1c9e6d1b26c565d4b170968ae61c0/tmux/notification_stream.go#L189
- **Page:** https://libtmux.org/en/go/latest/reference/tmux-notificationstream-subscribe/

```
tmux.NotificationStream.Subscribe(ctx: context.Context, request: SubscriptionRequest) -> error
```

Subscribe asks tmux to evaluate request's format and report it on this stream as a subscription-changed notification, read with [ControlNotification.Subscription]. tmux reports the value at its next evaluation, about a second later, and then each time it changes. Arming a name already armed replaces its format.
