並び順

ブックマーク数

期間指定

  • から
  • まで

1 - 17 件 / 17件

新着順 人気順

new eventsource javascriptの検索結果1 - 17 件 / 17件

  • WebSockets vs Server-Sent-Events vs Long-Polling vs WebRTC vs WebTransport | RxDB - JavaScript Database

    WebSockets vs Server-Sent-Events vs Long-Polling vs WebRTC vs WebTransport For modern real-time web applications, the ability to send events from the server to the client is indispensable. This necessity has led to the development of several methods over the years, each with its own set of advantages and drawbacks. Initially, long-polling was the only option available. It was then succeeded by Web

      WebSockets vs Server-Sent-Events vs Long-Polling vs WebRTC vs WebTransport | RxDB - JavaScript Database
    • WebKit Features in Safari 16.4

      Mar 27, 2023 by Patrick Angle, Marcos Caceres, Razvan Caliman, Jon Davis, Brady Eidson, Timothy Hatcher, Ryosuke Niwa, and Jen Simmons ContentsWeb Push on iOS and iPadOSImprovements for Web AppsWeb ComponentsCSSHTMLJavaScript and WebAssemblyWeb APIImages, Video, and AudioWKWebViewDeveloper ToolingWeb InspectorSafari Web ExtensionsSafari Content BlockersNew Restrictions in Lockdown ModeMore Improve

        WebKit Features in Safari 16.4
      • サーバーレスでスケールするメール送信システムをAWS CDKで構築する - 365歩のテック

        概要 タイトル通りですが、AWSでサーバーレスなメール送信システムを、AWS CDKを使って構築してみました。 サーバーレスなので、スケールする良い感じの構成になります。 荒いところもありますが結構便利なのでよかったらぜひご参考に、またはそのまま使ってくださいという感じで読んでいただけたら光栄です。 Amazon SESを使用してメールを送信していますが、(少し変えれば)SES以外でも送信できるかと思います。 目次 目次 概要 目次 まとめ(AWS Dev Day 2022 Japan) 要件 前提 アーキテクチャ 構成図 使用AWSサービス コード アーキテクチャ解説と補足 AWS CDK aws_lambda_nodejs パラメータ用コンフィグファイル バリデーション Amazon SES SQS 標準キュー 可視性タイムアウト ロングポーリング 部分バッチ応答 S3 DynamoD

          サーバーレスでスケールするメール送信システムをAWS CDKで構築する - 365歩のテック
        • Ruby: Rackの仕組みとWebSocketやSSEとの組み合わせを詳しく理解する(翻訳)|TechRacho by BPS株式会社

          概要 元サイトの許諾を得て翻訳・公開いたします。 英語記事: Binary Solo | A deep dive into Rack for Ruby 原文公開日: 2024/10/30 原著者: Ayush Newatia 日本語タイトルは内容に即したものにしました。 Rackは、現在のあらゆる著名なRuby製Webフレームワークの基盤であり、RubyアプリケーションとWebサーバーの間のインターフェイスを標準化します。 このメカニズムによって、Rack準拠のWebサーバー(Puma、Unicorn、Falconなど)とRack準拠のWebフレームワーク(Rails、Sinatra、Roda、Hanamiなど)を組み合わせ可能になります。 このように関心を分離すると、組み合わせを大幅に柔軟にできるため、非常に強力です。 ただし制約もあります。Rack 2では、あらゆるリクエストに対してレ

            Ruby: Rackの仕組みとWebSocketやSSEとの組み合わせを詳しく理解する(翻訳)|TechRacho by BPS株式会社
          • 2022-02-14のJS: Parcel 2.3.0、Vite 2.8.0、Angular Compilerがどのように動いているか、JavaScriptでDDD

            JSer.info #579 - Parcel 2.3.0がリリースされました。 Release v2.3.0 · parcel-bundler/parcel ParcelでParcel自体のいくつかの依存関係を事前にbundleするように変更。 Node Core ModulesのpolyfillやBabel/PostCSSの依存関係をオンデマンドでインストールするように変更などの変更が含まれています。 Reduce the number of npm dependencies needed by parcel by devongovett · Pull Request #7576 · parcel-bundler/parcel Vite 2.8.0がリリースされています。 vite/CHANGELOG.md at main · vitejs/vite macOS Montereyで50

              2022-02-14のJS: Parcel 2.3.0、Vite 2.8.0、Angular Compilerがどのように動いているか、JavaScriptでDDD
            • リアルタイムな情報をプッシュする技術「Server Sent Events」のフロントエンド実装方法とは?#SSE #フロントエンド #実装 - ハイパーマッスルエンジニア

              Server Sent Events (SSE)は、サーバからクライアントにリアルタイムで情報をプッシュするための技術です。この記事では、そのフロントエンドでの実装方法をいくつか紹介します。 完成品 今回実装したものは下記に収めてます。Next.jsを使っています。 github.com 下記で実際にブラウザで動作確認できます。 https://server-sent-events-example.vercel.app ChatGPTのようなUIを実装するのに色々な方法を試しました。 SSEのサーバー側のコード サーバーサイドの設定は以下のとおりです。 SSEをサポートするエンドポイントを作成します。 レスポンスのヘッダーに'Content-Type': 'text/event-stream'を設定し、接続を開いたままにします。 必要に応じて、特定の間隔でデータを送信します。 pages/

                リアルタイムな情報をプッシュする技術「Server Sent Events」のフロントエンド実装方法とは?#SSE #フロントエンド #実装 - ハイパーマッスルエンジニア
              • 2023-11-08のJS: Remix 2.2.0(Vite)、Deno 1.38、Angular.dev

                JSer.info #668 - Remix 2.2.0がリリースされました。 Release v2.2.0 · remix-run/remix Viteをサポートし、ViteのプラグインとしてRemixを使えるようになりました。 詳しくは次の記事で解説されていますが、既存のViteのエコシステムに乗れることで開発体験の改善やViteのプラグインの利用などができるようになっています。 Remix ❤️ Vite | Remix 他には、Fetcherにkeyを指定できるようになる変更が含まれています。 また、future.v3_fetcherPersistフラグで、Fetcherのクリーンアップの新しい挙動をopt-inで試せるようになっています。 Deno 1.38がリリースされてました。 Deno 1.38: HTML doc generator and HMR deno doc --

                  2023-11-08のJS: Remix 2.2.0(Vite)、Deno 1.38、Angular.dev
                • OpenAI APIで思い出す、Server-Sent Events - console.lealog();

                  Server-Sent Events・・・お前・・・生きていたのか・・・! っていう気持ちになったので、ちょっとだけまとめておく。 OpenAI API 話題のChatGPTはAPIが公開されていて、それぞれの言語のライブラリだったりREST APIだったりから利用できる。 それを使ってチャットを実装する場合に、本家GUIみたく、レスポンスを一気にまとめてではなくちょっとずつ返ってくるようにしたいとする。 そこで、あの挙動はどうやって実現するのか?ってなった人も多いはず。 あのレスポンスをちょっとずつ、ストリーミングで返してもらう挙動を実現するためには、`stream: true`というオプションを指定する。 これはREST APIをJavaScriptから利用する場合の指定。 const res = await fetch("https://api.openai.com/v1/chat/

                    OpenAI APIで思い出す、Server-Sent Events - console.lealog();
                  • リアルタイムなwebアプリを実現する方法(ポーリング、Comet、Server Sent Events、WebSocket)

                    リアルタイムなwebアプリを実現する方法(ポーリング、Comet、Server Sent Events、WebSocket)2016/1/17 人気記事 リアルタイムなwebアプリを実現する方法について、サンプルコードを作成しながら検証する。 注意点 この記事で記載している実現方法はいずれもHTTPレベルの仕組みで実現されるものであり、サンプルコードはあくまで実装例です。 サンプルコードは動作を確認するのが目的であり、プロダクション適用レベルの考慮は一切していません。 実現方法の一覧ポーリング 画面をフルでレンダリングするパターンAjaxでJSONやXMLでデータを取得するパターンComet(ロングポーリング) Server Sent Events WebSocket 詳細の理解は、以下の資料を参考にしてください。 参考 サーバPUSHざっくりまとめ サンプルコードポーリング(Ajax)リ

                      リアルタイムなwebアプリを実現する方法(ポーリング、Comet、Server Sent Events、WebSocket)
                    • Server-Sent Events: the alternative to WebSockets you should be using

                      When developing real-time web applications, WebSockets might be the first thing that come to your mind. However, Server Sent Events (SSE) are a simpler alternative that is often superior. Contents Prologue WebSockets? What is wrong with WebSockets Compression Multiplexing Issues with proxies Cross-Site WebSocket Hijacking Server-Sent Events Let’s write some code The Reverse-Proxy The Frontend The

                        Server-Sent Events: the alternative to WebSockets you should be using
                      • Release Notes for Safari Technology Preview 148

                        Safari Technology Preview Release 148 is now available for download for macOS Monterey 12.3 or later and macOS Ventura beta. Updates to Safari Technology Preview are no longer available for macOS Big Sur. If you already have Safari Technology Preview installed, you can update in the Software Update pane of System Preferences on macOS Monterey, or System Settings under General → Software Update on

                          Release Notes for Safari Technology Preview 148
                        • Roadmap 2026 (2026-02-04) | webpack

                          Hello from the webpack Technical Steering Committee member Even! The different contributors in the organization continue to work on ensuring that webpack remains a solid and reliable tool for building web applications. While many new tools have emerged, webpack continues to be a stable and well-supported choice. Here’s what we’re excited about for 2026 In 2026, our focus goes beyond maintaining ex

                            Roadmap 2026 (2026-02-04) | webpack
                          • How to monitor and query IAM resources at scale – Part 2 | Amazon Web Services

                            AWS Security Blog How to monitor and query IAM resources at scale – Part 2 In this post, we continue with our recommendations for using AWS Identity and Access Management (IAM) APIs. In part 1 of this two-part series, we described how you could create IAM resources and use them soon after for authorization decisions. We also described options for monitoring and responding to IAM resource changes f

                              How to monitor and query IAM resources at scale – Part 2 | Amazon Web Services
                            • OpenAI SSE (Server-Sent Events) Streaming API

                              Photo by ELLA DON on UnsplashHave you been working on an OpenAI project that uses the Chat GPT API? Do you want to stream the response to your application in real-time — as it's being generated? In this article, I will walk you through the process of using OpenAI’s API to receive SSE to your server and forwarding those events to your client using SSE. The examples will be written in JavaScript, Py

                                OpenAI SSE (Server-Sent Events) Streaming API
                              • Blazor Developers Can Now Create Custom Elements, Render Components from JavaScript -- Visual Studio Magazine

                                News Blazor Developers Can Now Create Custom Elements, Render Components from JavaScript By David Ramel09/16/2021 Microsoft's Blazor web-dev tech received a raft of improvements in the new .NET 6 Release Candidate 1, including the ability to create custom elements, render components from JavaScript and even generate Angular and React components. Blazor, which allows for web projects coded primaril

                                  Blazor Developers Can Now Create Custom Elements, Render Components from JavaScript -- Visual Studio Magazine
                                • Amplified exposure: How AWS flaws made Amplify IAM roles vulnerable to takeover | Datadog Security Labs

                                  research Amplified exposure: How AWS flaws made Amplify IAM roles vulnerable to takeover April 15, 2024 aws vulnerability disclosure Key Points We identified two variants of a vulnerability in AWS Amplify that exposed identity and access management (IAM) roles associated with Amplify projects, allowing them to become assumable by anyone in the world. If the authentication component was removed fro

                                    Amplified exposure: How AWS flaws made Amplify IAM roles vulnerable to takeover | Datadog Security Labs
                                  • How to Add Live Reload to Your Rails Application

                                    Live reload is an incredible tool for developers looking to boost their productivity. In this tutorial, I will walk you through implementing live reload in your Ruby on Rails application using esbuild. Implementing live reload can significantly streamline your development workflow, saving you valuable time and effort. You can instantly see the results by automatically refreshing your app whenever

                                      How to Add Live Reload to Your Rails Application
                                    1