Vercel Functions で WebSocket がパブリックベータに
本文の状態
日本語全文を表示中
詳細モードで約1分の本文を読めます。
同じ出来事の情報源
この情報源を基点に整理
Vercel Blog
Vercel は、同社の Functions サービスで WebSocket 接続をサポートする機能をパブリックベータとして公開した。これにより、クライアントとサーバー間での双方向通信が可能になり、リアルタイムの AI ストリーミングやチャット機能の実装が容易になる。
Continue in AI NEW LAB
このニュースを、実務の判断につなげる
AI NEW LABで、試したことや先に確認したい条件を共有できます。まずはログインなしで読めます。
AI NEW LABで論点を見るSource Article
元記事を日本語で読む
本文に関係しない購読案内、埋め込み通知、サイト内プロモーションは除いています。
Vercel Functions は now WebSocket 接続を提供できるようになり、クライアントと Vercel 上のサーバーサイドコード間の双方向通信が可能になりました。
リアルタイム機能として、対話型 AI ストリーミング、チャット、共同作業アプリなどに WebSockets を使用できます。
WebSocket 接続は Fluid compute で実行され、他の Function 呼び出しと同じ制限と料金体系に従います。Active CPU プライシングにより、請求はメッセージを処理している間のみ適用され、アイドル状態の接続時間には課金されません。
追加設定なしで、標準的な Node.js ライブラリを使用して WebSocket 接続を提供できます:
Socket.IO のような高レベルなライブラリもサポートされています。
始め方はドキュメントをご覧ください。
さらに読む
原文を表示
Vercel Functions can now serve WebSocket connections, enabling bidirectional communication between clients and server-side code on Vercel.
Use WebSockets for realtime features such as interactive AI streaming, chat, and collaborative apps.
WebSocket connections run Fluid compute and follow the same limits and pricing as other Function invocations. With Active CPU pricing, billing only applies to the time your Function spends processing messages, not idle connection time.
You can serve WebSocket connections using standard Node.js libraries, with no additional configuration:
Higher-level libraries like Socket.IO are also supported.
Read the documentation to get started.
Read more
関連記事
今日のまとめ
AIデイリーブリーフで今日の重要ニュースをまとめ読み