-
Notifications
You must be signed in to change notification settings - Fork 89
feat(chat-x): feat: add configurable WebSocket URL #135
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
WalkthroughThis change introduces a new method Changes
Sequence Diagram(s)sequenceDiagram
participant User
participant SettingsForm
participant Config
participant LocalStorage
participant API
User->>SettingsForm: Open Settings Page
SettingsForm->>Config: Call getBaseWsUrl()
Config->>LocalStorage: Retrieve 'chat-x_base_ws_url'
alt URL exists in storage
LocalStorage-->>Config: Return stored URL
else URL not found
LocalStorage-->>Config: Return null
Config-->>Config: Use default 'wss://ws.coze.cn'
end
Config-->>SettingsForm: Return WebSocket URL
SettingsForm->>API: Initialize client with WebSocket URL
Possibly related PRs
Suggested reviewers
Poem
📜 Recent review detailsConfiguration used: CodeRabbit UI 📒 Files selected for processing (4)
⏰ Context from checks skipped due to timeout of 90000ms (1)
🔇 Additional comments (7)
✨ Finishing Touches
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
Codecov ReportAll modified and coverable lines are covered by tests ✅ ❌ Your project status has failed because the head coverage (0.00%) is below the target coverage (90.00%). You can increase the head coverage or adjust the target coverage. @@ Coverage Diff @@
## main #135 +/- ##
=========================================
- Coverage 91.82% 0 -91.83%
=========================================
Files 117 0 -117
Lines 5469 0 -5469
Branches 1106 0 -1106
=========================================
- Hits 5022 0 -5022
+ Misses 447 0 -447
see 117 files with indirect coverage changes 🚀 New features to boost your workflow:
|
Summary by CodeRabbit
New Features
Refactor