Skip to content

Update moq api#269

Merged
Karolk99 merged 3 commits into
mainfrom
fce-3479/update-moq-api
Jun 23, 2026
Merged

Update moq api#269
Karolk99 merged 3 commits into
mainfrom
fce-3479/update-moq-api

Conversation

@Karolk99

Copy link
Copy Markdown
Contributor

No description provided.

@Karolk99 Karolk99 requested review from Copilot and czerwiukk June 23, 2026 12:03
@linear

linear Bot commented Jun 23, 2026

Copy link
Copy Markdown

FCE-3479

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR updates the MoQ documentation to describe and demonstrate using “connection URLs” (relay URL with embedded JWT) instead of manually handling raw publisher/subscriber tokens.

Changes:

  • Update MoQ web + React Native publishing/subscribing tutorials to request and use a connection_url.
  • Update MoQ explanation docs to describe obtaining “connection URLs” via Sandbox API and Server SDKs.
  • Rename referenced SDK methods in examples (e.g., createMoqTokencreateMoqAccess, getSandboxMoq*TokengetSandboxMoq*Access) and update example code accordingly.

Reviewed changes

Copilot reviewed 11 out of 11 changed files in this pull request and generated 20 comments.

Show a summary per file
File Description
versioned_docs/version-0.28.0/tutorials/moq/web-subscribing.mdx Updates sandbox + production subscribing examples to use “connection URL” flows.
versioned_docs/version-0.28.0/tutorials/moq/web-publishing.mdx Updates sandbox + production publishing examples to use “connection URL” flows.
versioned_docs/version-0.28.0/tutorials/moq/react-native-subscribing.mdx Updates React Native subscribing examples to use “connection URL” flows.
versioned_docs/version-0.28.0/tutorials/moq/react-native-publishing.mdx Updates React Native publishing examples to use “connection URL” flows.
versioned_docs/version-0.28.0/explanation/moq-with-fishjam.mdx Reframes token acquisition section around “connection URLs” and updates referenced SDK method names.
docs/tutorials/moq/web-subscribing.mdx Same as the versioned tutorial: move to “connection URL” flows.
docs/tutorials/moq/web-publishing.mdx Same as the versioned tutorial: move to “connection URL” flows.
docs/tutorials/moq/react-native-subscribing.mdx Same as the versioned tutorial: move to “connection URL” flows.
docs/tutorials/moq/react-native-publishing.mdx Same as the versioned tutorial: move to “connection URL” flows.
docs/explanation/moq-with-fishjam.mdx Same as the versioned explanation: reframes token acquisition around “connection URLs”.

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Comment on lines +50 to +55
const { getSandboxMoqSubscriberAccess } = useSandbox({
sandboxApiUrl: SANDBOX_API_URL,
});

// Request a subscriber token scoped to the subscriber path
const subscribeToken = await getSandboxMoqSubscriberToken(SUBSCRIBER_PATH);
// Request a subscriber connection URL scoped to the subscriber path
const { connection_url: subscribeUrl } = await getSandboxMoqSubscriberAccess(SUBSCRIBER_PATH);
Comment on lines +181 to 184
// Generate a connection URL that allows subscribing to 'stream-alice'
const { connection_url: subscribeUrl } = await fishjamClient.createMoqAccess({
subscribePath: streamPath,
});
Comment on lines +50 to +55
const { getSandboxMoqPublisherAccess } = useSandbox({
sandboxApiUrl: SANDBOX_API_URL,
});

// Request a publisher token scoped to the publisher path
const publishToken = await getSandboxMoqPublisherToken(PUBLISHER_PATH);
// Request a publisher connection URL scoped to the publisher path
const { connection_url: publishUrl } = await getSandboxMoqPublisherAccess(PUBLISHER_PATH);
Comment on lines +144 to 147
// Generate a connection URL that allows publishing to 'stream-alice'
const { connection_url: publishUrl } = await fishjamClient.createMoqAccess({
publishPath: streamPath,
});
Comment on lines +79 to 85
const { getSandboxMoqSubscriberAccess } = useSandbox({
sandboxApiUrl: SANDBOX_API_URL,
});

// Request a subscriber token scoped to the subscriber path
const subscribeToken = await getSandboxMoqSubscriberToken(SUBSCRIBER_PATH);
// Request a subscriber connection URL scoped to the subscriber path
const { connection_url: subscribeUrl } = await getSandboxMoqSubscriberAccess(SUBSCRIBER_PATH);
```
Comment on lines +214 to 217
// Generate a connection URL that allows subscribing to 'stream-alice'
const { connection_url: subscribeUrl } = await fishjamClient.createMoqAccess({
subscribePath: streamPath,
});
Comment on lines +71 to 77
const { getSandboxMoqPublisherAccess } = useSandbox({
sandboxApiUrl: SANDBOX_API_URL,
});

// Request a publisher token scoped to the publisher path
const publishToken = await getSandboxMoqPublisherToken(PUBLISHER_PATH);
// Request a publisher connection URL scoped to the publisher path
const { connection_url: publishUrl } = await getSandboxMoqPublisherAccess(PUBLISHER_PATH);
```
Comment on lines +190 to 193
// Generate a connection URL that allows publishing to 'stream-alice'
const { connection_url: publishUrl } = await fishjamClient.createMoqAccess({
publishPath: streamPath,
});
Comment on lines +125 to +126
Each returns a JSON object with a `connection_url` field — the relay URL with the JWT embedded as `?jwt=` — alongside the raw `token`.

Comment on lines +133 to +136
The SDK's `createMoqAccess` method accepts either a `publishPath` or a `subscribePath` and returns the MoQ access details — a `connection_url` (the relay URL with the JWT embedded) alongside the raw `token`:

- `publishPath`issues a publisher token scoped to that path.
- `subscribePath`issues a subscriber token scoped to that path or namespace prefix.
- `publishPath`returns a publisher connection URL scoped to that path.
- `subscribePath`returns a subscriber connection URL scoped to that path or namespace prefix.
Comment thread docs/explanation/moq-with-fishjam.mdx Outdated
Comment thread docs/explanation/moq-with-fishjam.mdx Outdated
Comment thread docs/explanation/moq-with-fishjam.mdx
@Karolk99 Karolk99 force-pushed the fce-3479/update-moq-api branch from 9d8f493 to 16b104e Compare June 23, 2026 16:34
@Karolk99 Karolk99 merged commit e639708 into main Jun 23, 2026
1 check passed
@Karolk99 Karolk99 deleted the fce-3479/update-moq-api branch June 23, 2026 16:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants