Files
frankenphp/docs/ja/mercure.md
demouth 53e6d1897d docs: add Japanese translation for documentation (#1740)
* docs(ja): add Japanese documentation translation

* docs(ja): fix invalid link fragments and improve section heading
2025-08-25 16:15:10 +02:00

1.1 KiB
Raw Permalink Blame History

リアルタイム

FrankenPHPには組み込みのMercureハブが付属しています! Mercureを使用すると、接続されているすべてのデバイスにリアルタイムイベントをプッシュでき、各デバイスは即座にJavaScriptイベントを受信します。

JSライブラリやSDKは必要ありません

Mercure

Mercureハブを有効にするには、Mercureのサイトで説明されているようにCaddyfileを更新してください。

Mercureハブのパスは/.well-known/mercureです。 FrankenPHPをDocker内で実行している場合、完全な送信URLはhttp://php/.well-known/mercureのようになります。ここでのphpはFrankenPHPを実行するコンテナの名前です。

コードからMercureの更新をプッシュするには、Symfony Mercure Componentをお勧めします。なお、Symfonyのフルスタックフレームワークは必要ありません。