注册并分享邀请链接,可获得视频播放与邀请奖励。

与「WebSocket」相关的搜索结果

WebSocket 贴吧
一个关键词就是一个贴吧,路径全站唯一。
创建贴吧
用户
未找到
包含 WebSocket 的内容
👀这是一条有点长的视频,建议看完,不会浪费你的时间,视频里面清楚地说明了各种opencodex网关遇到的问题,并做了反复测试和解释: 🛠️ 为什么使用自定义网关接入 Codex 时,历史对话经常“吃掉并废掉”?底层技术复盘: 在用 ChatGPT 账号通过本地网关接入第三方模型(如 DeepSeek/MiMo)到 Codex 时,偶发的第一句回复被吞、且导致后续对话逻辑全部串味的 Bug 终于结案了。这与 Codex 原生的链式 ID 校验有直接关系: 🔍 Codex 的底层设计限制: 1️⃣ 严格的链式 ID 绑定:Codex 在 WebSocket 长连接中管理对话非常严苛。每一轮新请求,客户端都会强校验上一轮 AI 回复的专属 ID(previous_response_id)。如果网络抖动或首字响应过慢(第三方模型常超 10s)触发超时,客户端 UI 就会单方面挂起或隐藏气泡,导致这条 ID 链条在前端断裂。 2️⃣ 网关与客户端历史分叉(污染):由于客户端没画出气泡,但本地网关后台其实已经收完并记录了 AI 回复。这导致网关和客户端的历史记录发生分叉。用户继续发下一句时,AI 是带着网关里“被吃掉的第一句回复”进行上下文推理的,导致后面的对话全部“串味”,会话彻底废掉。 3️⃣ 强依赖限流握手包:Codex 必须在长连接开始时收到官方特定的限流准入包(codex.rate_limits),才会激活输入输出流,自定义网关漏发此包会直接导致 UI 卡死。 🛡️ 我们的 100% 容错与“自愈”解决方案: 1️⃣秒回握手与占位:网关在等待慢速模型 fetch 之前,立即在 WebSocket 中发送 rate_limits 准入包,并瞬间为客户端创建空文本气泡(output_item.added),强制让 UI 进入安全等待状态,规避首字超时。 2️⃣Git 级历史自愈对齐(Self-Healing):网关实时比对客户端发来的 previous_response_id。一旦检测到客户端漏掉了某条回复(比如超时报错后重连),网关会在后台自动执行回滚,删掉这部分“被吃掉的脏历史”,瞬间让两端上下文绝对同步。 💡 结果:即便网络波动偶尔触发报错,也只是单次报错,下一句发送时系统会自动清除脏缓存并瞬间恢复,同一个会话可以直接一直聊下去,不用再频繁重建! #ChatGPT# #Codex# #WebSocket# #DeepSeek#
显示更多
A 19-year-old turned his phone into the controller for a real drone in 4 hours with Claude The drone was in his hand. The simulator was on his MacBook. The phone bridged them His name is Kai. The drone is a $99 DJI Tello sitting on his desk. The MacBook is running a custom 3D drone simulator with a green wireframe grid. The phone is showing a virtual joystick interface he built that morning The simulator on screen shows the drone hovering above the grid. Kai's thumb is on his phone. The drone on the MacBook tilts forward. The physical drone in his other hand spins its props at the same angle One input. Two drones move. Sim and real, synced. He built all three pieces with Claude Opus 4.8 in one session. He typed three prompts. Total "Build me a 3D drone simulator in the browser. Use Three.js. Quadcopter physics, gravity, drag, motor RPM per axis. Green wireframe environment." "Now add a websocket server so a phone can control the drone in this sim. Phone shows a joystick UI. The drone in the browser reacts in real time." "Now make the same websocket also send the same control values to a real drone over the Tello SDK. Make the sim and the real drone fly in parallel from the same input." Claude wrote the Three.js sim. The websocket server. The mobile joystick UI. The UDP bridge to the physical drone. The drift correction loop. All of it Kai did not write a line of code. Claude told him which files to paste into 4 hours from "I wonder if I could" to a phone flying a real drone through a wireframe world The simulator alone would have been a $4,000 freelance project last year. The control bridge would have been another $6,000. Most senior devs would have quoted 3 weeks Kai shipped it the same Saturday He posted a 28-second clip to TikTok that night 1.9M views in 36 hours 4 drone hardware startups in his DMs by morning. Two offered to fly him out. One offered him equity He is 19. He is still in college. He took the meeting from his dorm room with the same drone hovering behind him His CS professor had told the class that semester that AI would "augment programmers, not replace the discipline." Kai built more shippable software in one Saturday than he had built in 3 semesters of coursework The internet said building real-world hardware control needed embedded engineers and months of firmware work He did it on a school laptop with a model that wrote every line
显示更多
0
11
97
8
转发到社区
自己搭一个旅行规划器,一站式旅行规划工具,支持实时协作、互动地图、预算管理、打包清单等,替代商业旅行 App。 基于 NestJS + React 构建,支持实时协作(WebSocket 同步)、互动地图(Leaflet/Mapbox GL)、行程拖拽规划、费用分摊、打包清单、文档附件、PDF 导出等功能。
显示更多
白嫖代理节点,不用租VPS服务器,用 GitHub + Back4App 就能搭一个免费的 VLESS 出口。 核心思路很简单:我把模板仓库放在评论区,你点进去 Fork 到自己账号,改 UUID,再让 Back4App 按这个仓库自动部署。 1. 打开评论区的 GitHub 模板仓库,确认里面有 Dockerfile 和 config.json 2. 点 Fork,把模板复制到自己的 GitHub。这里注意 Repository name 不能和你账号里已有仓库重名,看到绿色 available 才能继续;如果重名,就改成 back4app-vless、vless-demo、free-node-test 之类 3. 生成一串自己的 UUID,可以搜 UUID generator,也可以在 Mac 终端跑 uuidgen 4. 打开自己 Fork 后的 config.json,把默认 uuid 换成自己的 5. 其它字段先别乱动,端口保持 8080,WebSocket 路径保持 /chat 6. 回到 Back4App,进入 Web Deployment / Containers 7. 新建部署,选择 Import GitHub Repo 8. GitHub 授权时选 Only selected repositories,别选 All repositories 9. 只选刚才 Fork 到自己账号下的那个仓库 10. 回到 Back4App,选中仓库,部署参数里 Port 填 8080,Root Directory 留默认 / 11. 等状态变成 Available / Ready,复制 Back4App 给你的 b4a(.)run 临时域名 12. 客户端按这个格式拼链接: vless://你的UUID@你的域名:443?encryption=none&security=tls&type=ws&host=你的域名&sni=你的域名&path=%2Fchat#Back4App# 模板仓库要先登录GitHub,如果打开提示 Too many requests,通常是限流。换个节点或者等几分钟再刷新即可。 免费版会休眠,想保活就用 UptimeRobot 或 cron-job(.)org 每 10-15 分钟访问一次 b4a(.)run 地址。 白嫖节点适合应急、测试、临时备用。需要长期稳定,请考虑 VPS 或付费订阅。
显示更多
0
81
70
7
转发到社区
免费开源的本地优先桌面 API 客户端,一个窗口搞定 HTTP、gRPC、WebSocket 和 GraphQL 四种协议。
轻量级自托管服务器监控面板,Agent 通过 WebSocket 主动上报,目标主机不用暴露端口。
HERMES AGENT v0.17.0 JUST SHIPPED. "THE REACH RELEASE." 1,475 COMMITS. 800 PRs. 245 CONTRIBUTORS. HERMES NOW REACHES IMESSAGE, RAFT NETWORK, AND CURSOR'S COMPOSER MODEL. the highlights: @NousResearch iMESSAGE WITHOUT A MAC RELAY Photon Spectrum integration ships native iMessage support. no Mac in a closet. no BlueBubbles bridge. hermes photon login → device code auth → done. Hermes lives in the blue bubbles now. ASYNC SUBAGENTS NO LONGER BLOCK YOUR CHAT delegate_task(background=true) dispatches a subagent that runs in the background. returns a handle immediately. you keep working. result re-enters as a new turn when it finishes. long research dives stop blocking your main session. IMAGE EDITING, NOT JUST GENERATION image_generate now edits source images. "make this logo blue." "remove the background." "turn this sketch into a render." works across every supported image provider. same tool, new mode. CURSOR'S COMPOSER MODEL VIA GROK OAUTH grok-composer-2.5-fast is in the xAI model picker. 200k context window. fast coding model behind Cursor. your Grok subscription. Hermes's agent loop. no separate API key needed. AUTOMATION BLUEPRINTS schedule tasks without learning cron syntax. "daily news briefing at 8am" becomes a form. one blueprint definition renders everywhere: dashboard form, CLI slash command, Telegram chat, docs catalog entry. answer questions, not memorize 0 8 * * *. FULL PROFILE BUILDER IN DASHBOARD build a complete Hermes profile from the browser. pick model. choose skills. attach MCPs. no config.yaml editing. plus unified multi-profile view with global switcher. SKILLS HUB BROWSER REHAUL connected hubs (OpenAI, Anthropic, HuggingFace, NVIDIA). Featured section. full skill previews before install. security scan on each skill. browsing skills is a real browsing experience now. ATOMIC MEMORY OPERATIONS memory tool gained an operations array. batch add/replace/remove edits applied atomically. the model can free space and add entries in ONE call even when individual adds would overflow the budget. memory updates no longer fail mid-edit. CURATOR STOPPED SPENDING TOKENS BY DEFAULT deterministic skill pruning still runs free. LLM-powered consolidation now opt-in only: curator.consolidate: true to enable. routine background curation costs you zero tokens. WHATSAPP BUSINESS CLOUD API official Meta adapter alongside existing Baileys bridge. no QR-scanning bridge process to keep alive. hosted, first-party WhatsApp channel. TELEGRAM RICH MESSAGES (BOT API 10.1) proper rich formatting. cleaner long-message handling. native markup instead of flattened text. on by default. opt-out available. DESKTOP APP IS NOW A DAILY DRIVER rebindable keyboard shortcuts. native OS notifications. live subagent watch-windows streaming activity. composer model selector with per-model presets. automatic RTL/bidi text. resizable VS Code terminal pane. per-thread composer drafts. install ANY VS Code Marketplace theme. RAFT AGENT NETWORK new bundled adapter connects Hermes to raft. build as an external agent. wake-channel bridge. privacy by contract: wake payloads carry metadata only, never message bodies. SECURE DASHBOARD LOGIN every token-required endpoint returns 401 behind OAuth gate. websocket auth uses served dashboard token. public_url override warnings. exposing your dashboard to the network is safer by default. upgrade: hermes update 300+ issues closed. security round included. hermes-agent ecosystem now at 198K GitHub stars.
显示更多
如何用 Python 连接 TradingView 的隐藏 API? 开发算法交易机器人或金融科技平台需要坚实的数据基础设施。然而,获取实时价格数据流和技术指标流通常意味着支付极其昂贵的机构订阅费用。 开源代码仓库 TradingView-API 消除了这种障碍,让你能够以原生方式连接到 TradingView 的服务器,在毫秒内提取金融遥测数据和指标。 . 🧠 项目提取和自动化架构: • WebSockets 原生连接:该框架不使用缓慢且嘈杂的 Web 抓取。它通过 WebSockets 与 TradingView 数据源建立直接的双向通道,确保数据流(实时流)以最小延迟持续传输。 • 完整指标访问:让你能够直接从后端读取任何技术指标(RSI、布林带、MACD)或 Pine Script 自定义脚本的确切状态,从而无需本地重新计算数学数据。 • 全球多资产支持:它以平台无关的方式运行,可跟踪平台上任何可用的交易代码:从加密货币和外汇对,到华尔街科技股、全球指数和大宗商品。 • 适用于执行引擎:由于基于 Python 构建,它可立即与数据分析库(Pandas、NumPy)和订单执行框架集成,为后台自动化机器人提供数据支持。 . 停止依赖笨重的可视化界面,将 TradingView 的分析能力直接转移到你的本地控制台,这是将你的交易和市场研究基础设施专业化的决定性一步。 我在评论区留下官方仓库链接。 如果你正在构建交易机器人、分析金融数据,或想在这个周末自动化你的市场策略,就把这个帖子保存到书签里 🔖
显示更多
Spark r23 update is here! Here are some of the headlines: • Browser-use reliability improved. • CLI diagnostics are cleaner and safer. • Sandbox path and access handling improved. • UTF-8 truncation now avoids broken multibyte output. • Trust prompt now handles literal yes correctly. • Managed env cleanup now uses safer atomic writes. • Hosted allowed-host validation handles bracketed IPv6 cases more safely. • Git approval checks now better classify risky filter-branch commands. • Telegram relay secret UX improved, including no-echo behavior for rejected secrets. • Spawner mission reliability improved. • Spawner malformed JSON recovery improved. • Spawner mission-control hydration fixed. • Spawner creator-mission error clarity improved. • Spawner provider-client abort-listener cleanup landed. • Spawner trace/token/bundle reliability improved. • Voice profile JSON error handling improved. • Voice hook malformed-input handling improved. • Voice realtime websocket JSON handling improved. • Researcher timestamp parsing improved. • Researcher memory lock-boundary behavior improved. • Researcher malformed config handling improved. • Character persona pointer cleanup improved. • Character chip id path guard improved. • Character critic exact-pass behavior tightened. • Domain chip scoring observability improved. Spark Compete update • r22-to-r23 scoring ledger is published. • 164 merged or maintainer-adopted PR rows were credited. • 9,460 public points were released in this ledger. • Total public leaderboard points now show 12,795. Thank you to everyone who submitted fixes. r23 is Spark getting sharper through the community.
显示更多
0
12
71
12
转发到社区
这个有点偏颇啊,我们公司就专门做程序员的生意 做程序员的生意,还是你本身就是程序员,然后同时要很懂他们 比如说我们的内网穿透,就有TCP、UDP、WebSocket的这种各种方式,能对抗供应商的NAT和QoS,这对他们就很香啊,因为能穿透回家,他们就能整活呀,这完全就是刚需呀 还有你看我们这个Light OS,拿个小手机、小平板到处编程,这简直工程师最爱的东西啊 其实程序员虽然挑剔,但是如果你本身就是程序员,你做的细节和痛点特别打动他们,他们也很愿意付钱的,不像老板你说的这样,都是白嫖的🤡
显示更多