Skip to main content
Session migration redirects connected clients to a new URI during graceful server shutdown.

Server Side

Set NextSessionURI to specify the redirect destination, then call Shutdown:

Client Side

Use OnGoaway to handle shutdown notifications:

Relay

A relay is a client with respect to its upstream, so it handles upstream migration with the moqt.Dialer it uses to dial upstream — moqt.Server has no OnGoaway field: