Skip to content

Use signalingInsecure option for no-TLS TypeScript connections#4982

Open
shannonbradshaw wants to merge 2 commits intomainfrom
claude/ts-signaling-insecure
Open

Use signalingInsecure option for no-TLS TypeScript connections#4982
shannonbradshaw wants to merge 2 commits intomainfrom
claude/ts-signaling-insecure

Conversation

@shannonbradshaw
Copy link
Copy Markdown
Collaborator

Source changes

Docs changes

  • docs/reference/sdks/connectivity.md: Updated the TypeScript no-TLS connection example to use signalingInsecure: true instead of manually constructing an http:// signaling address URL. Updated the intro text and the code sample's highlighted lines.

How I found these

  • Detected the new signalingInsecure field in the TypeScript SDK diff (src/robot/client.ts, src/rpc/dial.ts)
  • Grep for signalingInsecure, no_tls, and DialWebRTC across the docs repo identified the connectivity page as the location that describes this exact use case
  • The existing code example manually prefixed http:// to the signaling address, which the new option replaces

Generated by daily docs change agent

The TypeScript SDK now supports a signalingInsecure dial option that
tells the SDK to connect to the signaling server over plain HTTP.
Update the connectivity page to use this option instead of manually
constructing an http:// URL for the signaling address.

Source: viamrobotics/viam-typescript-sdk#888

https://claude.ai/code/session_01RpYY6JffBD27vcdBPV41vb
@netlify
Copy link
Copy Markdown

netlify Bot commented Apr 19, 2026

Deploy Preview for viam-docs ready!

Name Link
🔨 Latest commit 86b6f0b
🔍 Latest deploy log https://app.netlify.com/projects/viam-docs/deploys/69e5ef6a9055470008de0345
😎 Deploy Preview https://deploy-preview-4982--viam-docs.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.
Lighthouse
Lighthouse
1 paths audited
Performance: 42 (🟢 up 2 from production)
Accessibility: 99 (no change from production)
Best Practices: 92 (🟢 up 9 from production)
SEO: 89 (no change from production)
PWA: 60 (no change from production)
View the detailed breakdown and full score reports

To edit notification comments on pull requests, go to your Netlify project configuration.

@viambot viambot added the safe to build This pull request is marked safe to build from a trusted zone label Apr 19, 2026
@shannonbradshaw shannonbradshaw requested a review from Copilot April 19, 2026 09:35
Copy link
Copy Markdown
Contributor

Copilot AI left a comment

Choose a reason for hiding this comment

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

Pull request overview

Updates the TypeScript no-TLS connection guidance to use the new signalingInsecure option rather than manually constructing an http:// signaling URL, aligning docs with the updated TypeScript SDK connection configuration.

Changes:

  • Replaces the “manual http:// signaling address” approach with signalingInsecure: true.
  • Updates the surrounding explanatory text and highlighted lines in the TypeScript snippet.

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

Comment thread docs/reference/sdks/connectivity.md Outdated
To connect directly to your local machine, you can use the connection code from the **CONNECT** tab if you are using the Python SDK, Go SDK, Flutter SDK, or C++ SDK.

For the TypeScript SDK, you must disable TLS verification for your `viam-server` and change the sinaling address for the connection code:
For the TypeScript SDK, you must disable TLS verification for your `viam-server` and set `signalingInsecure: true` in the connection code:
Copy link

Copilot AI Apr 19, 2026

Choose a reason for hiding this comment

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

Wording issue: viam-server doesn't do “TLS verification”; in this section you're disabling TLS on the server (via -no-tls / no_tls: true). Consider rephrasing to “disable TLS on viam-server” or “run viam-server without TLS” to avoid implying a client-side verification setting.

Suggested change
For the TypeScript SDK, you must disable TLS verification for your `viam-server` and set `signalingInsecure: true` in the connection code:
For the TypeScript SDK, you must disable TLS on your `viam-server` and set `signalingInsecure: true` in the connection code:

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in 86b6f0b. Rephrased to "disable TLS on your viam-server" as suggested.


Generated by Claude Code

Comment thread docs/reference/sdks/connectivity.md Outdated
Comment on lines +61 to +62
signalingAddress: `${host}.local:8080`,
signalingInsecure: true,
Copy link

Copilot AI Apr 19, 2026

Choose a reason for hiding this comment

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

signalingAddress: ${host}.local:8080`` is confusing given host is set to a `*.viam.cloud` hostname in this example. As written, it produces `…viam.cloud.local`, which doesn't match the local hostname pattern shown elsewhere in the docs (for example `my-robot.local`). Consider using a separate `localSignalingAddress`/`localHost` variable (or updating the sample `host` value) so the resulting address is unambiguous for readers.

Copilot uses AI. Check for mistakes.
Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in 86b6f0b. Replaced the confusing ${host}.local:8080 pattern with a separate localAddress variable set to my-machine.local:8080, making clear that the signaling address should be the machine's local hostname, not the cloud hostname.


Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

safe to build This pull request is marked safe to build from a trusted zone

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants