New Crowdin updates (#6964)
* New translations theme.md (Arabic) * New translations timelines.md (Arabic) * New translations aiscript.md (Czech) * New translations api.md (Czech) * New translations create-plugin.md (Czech) * New translations custom-emoji.md (Czech) * New translations follow.md (Czech) * New translations keyboard-shortcut.md (Czech) * New translations timelines.md (Spanish) * New translations stream.md (Spanish) * New translations pages.md (Czech) * New translations theme.md (French) * New translations api.md (French) * New translations create-plugin.md (French) * New translations custom-emoji.md (French) * New translations follow.md (French) * New translations keyboard-shortcut.md (French) * New translations mute.md (French) * New translations pages.md (French) * New translations reaction.md (French) * New translations reversi-bot.md (French) * New translations stream.md (French) * New translations create-plugin.md (Dutch) * New translations reversi-bot.md (Spanish) * New translations aiscript.md (Spanish) * New translations api.md (Spanish) * New translations create-plugin.md (Spanish) * New translations custom-emoji.md (Spanish) * New translations follow.md (Spanish) * New translations keyboard-shortcut.md (Spanish) * New translations mute.md (Spanish) * New translations pages.md (Spanish) * New translations reaction.md (Spanish) * New translations mute.md (Czech) * New translations timelines.md (French) * New translations reaction.md (Czech) * New translations follow.md (Korean) * New translations reaction.md (German) * New translations reversi-bot.md (German) * New translations stream.md (German) * New translations theme.md (German) * New translations timelines.md (German) * New translations aiscript.md (Korean) * New translations api.md (Korean) * New translations create-plugin.md (Korean) * New translations custom-emoji.md (Korean) * New translations keyboard-shortcut.md (Korean) * New translations mute.md (German) * New translations mute.md (Korean) * New translations pages.md (Korean) * New translations reaction.md (Korean) * New translations stream.md (Korean) * New translations theme.md (Korean) * New translations timelines.md (Korean) * New translations aiscript.md (Dutch) * New translations api.md (Dutch) * New translations reversi-bot.md (Czech) * New translations pages.md (German) * New translations reversi-bot.md (Korean) * New translations keyboard-shortcut.md (German) * New translations mute.md (Danish) * New translations stream.md (Czech) * New translations follow.md (German) * New translations theme.md (Czech) * New translations timelines.md (Czech) * New translations api.md (Danish) * New translations create-plugin.md (Danish) * New translations custom-emoji.md (Danish) * New translations follow.md (Danish) * New translations keyboard-shortcut.md (Danish) * New translations aiscript.md (Danish) * New translations pages.md (Danish) * New translations ja-JP.yml (German) * New translations reaction.md (Danish) * New translations custom-emoji.md (German) * New translations api.md (German) * New translations aiscript.md (German) * New translations timelines.md (Danish) * New translations theme.md (Danish) * New translations stream.md (Danish) * New translations reversi-bot.md (Danish) * New translations create-plugin.md (German) * New translations follow.md (Kabyle) * New translations keyboard-shortcut.md (Kabyle) * New translations custom-emoji.md (Kabyle) * New translations create-plugin.md (Kabyle) * New translations api.md (Kabyle) * New translations aiscript.md (Kabyle) * New translations reversi-bot.md (Kannada) * New translations timelines.md (Kannada) * New translations theme.md (Kannada) * New translations stream.md (Kannada) * New translations reaction.md (Kannada) * New translations pages.md (Kannada) * New translations mute.md (Kannada) * New translations pages.md (Kabyle) * New translations keyboard-shortcut.md (Kannada) * New translations mute.md (Kabyle) * New translations keyboard-shortcut.md (Japanese, Kansai) * New translations reaction.md (Kabyle) * New translations follow.md (Japanese, Kansai) * New translations custom-emoji.md (Kannada) * New translations theme.md (Japanese, Kansai) * New translations stream.md (Japanese, Kansai) * New translations reversi-bot.md (Japanese, Kansai) * New translations reaction.md (Japanese, Kansai) * New translations pages.md (Japanese, Kansai) * New translations mute.md (Japanese, Kansai) * New translations custom-emoji.md (Japanese, Kansai) * New translations reversi-bot.md (Kabyle) * New translations create-plugin.md (Japanese, Kansai) * New translations api.md (Japanese, Kansai) * New translations aiscript.md (Japanese, Kansai) * New translations timelines.md (Kabyle) * New translations theme.md (Kabyle) * New translations stream.md (Kabyle) * New translations follow.md (Kannada) * New translations keyboard-shortcut.md (English) * New translations create-plugin.md (Kannada) * New translations aiscript.md (English) * New translations reaction.md (English) * New translations pages.md (English) * New translations mute.md (English) * New translations follow.md (English) * New translations custom-emoji.md (English) * New translations create-plugin.md (English) * New translations api.md (English) * New translations stream.md (English) * New translations timelines.md (Chinese Traditional) * New translations theme.md (Chinese Traditional) * New translations stream.md (Chinese Traditional) * New translations reversi-bot.md (Chinese Traditional) * New translations reaction.md (Chinese Traditional) * New translations pages.md (Chinese Traditional) * New translations mute.md (Chinese Traditional) * New translations reversi-bot.md (English) * New translations theme.md (English) * New translations api.md (Kannada) * New translations pages.md (Uyghur) * New translations aiscript.md (Kannada) * New translations timelines.md (Uyghur) * New translations theme.md (Uyghur) * New translations stream.md (Uyghur) * New translations reversi-bot.md (Uyghur) * New translations reaction.md (Uyghur) * New translations mute.md (Uyghur) * New translations timelines.md (English) * New translations keyboard-shortcut.md (Uyghur) * New translations follow.md (Uyghur) * New translations custom-emoji.md (Uyghur) * New translations create-plugin.md (Uyghur) * New translations api.md (Uyghur) * New translations aiscript.md (Uyghur) * New translations timelines.md (Japanese, Kansai) * New translations ja-JP.yml (Chinese Simplified) * New translations ja-JP.yml (French) * New translations ja-JP.yml (Chinese Simplified) * New translations ja-JP.yml (Chinese Traditional) * New translations ja-JP.yml (English) * New translations ja-JP.yml (Russian) * New translations ja-JP.yml (Ukrainian) * New translations ja-JP.yml (Spanish) * New translations ja-JP.yml (German) * New translations ja-JP.yml (Korean) * New translations aiscript.md (Chinese Simplified) * New translations api.md (Chinese Simplified) * New translations api.md (Chinese Simplified) * New translations api.md (Chinese Simplified) * New translations api.md (Chinese Simplified) * New translations api.md (Chinese Simplified) * New translations api.md (Chinese Simplified) * New translations api.md (Chinese Simplified) * New translations create-plugin.md (Chinese Simplified) * New translations stream.md (Chinese Simplified) * New translations create-plugin.md (Chinese Simplified) * New translations create-plugin.md (Chinese Simplified) * New translations create-plugin.md (Chinese Simplified) * New translations create-plugin.md (Chinese Simplified) * New translations ja-JP.yml (Chinese Traditional) * New translations ja-JP.yml (Chinese Traditional) * New translations mfm.md (Ukrainian) * New translations mfm.md (Korean) * New translations deck.md (Dutch) * New translations mfm.md (Dutch) * New translations deck.md (Norwegian) * New translations mfm.md (Norwegian) * New translations deck.md (Polish) * New translations mfm.md (Polish) * New translations deck.md (Portuguese) * New translations mfm.md (Portuguese) * New translations deck.md (Russian) * New translations mfm.md (Russian) * New translations deck.md (Ukrainian) * New translations deck.md (Chinese Simplified) * New translations mfm.md (German) * New translations mfm.md (Chinese Simplified) * New translations deck.md (Chinese Traditional) * New translations mfm.md (Chinese Traditional) * New translations deck.md (English) * New translations mfm.md (English) * New translations deck.md (Uyghur) * New translations mfm.md (Uyghur) * New translations deck.md (Kannada) * New translations mfm.md (Kannada) * New translations deck.md (Kabyle) * New translations mfm.md (Kabyle) * New translations deck.md (Japanese, Kansai) * New translations deck.md (Korean) * New translations deck.md (German) * New translations mfm.md (Danish) * New translations deck.md (French) * New translations mfm.md (French) * New translations deck.md (Spanish) * New translations mfm.md (Spanish) * New translations deck.md (Arabic) * New translations mfm.md (Arabic) * New translations deck.md (Czech) * New translations mfm.md (Czech) * New translations deck.md (Danish) * New translations mfm.md (Japanese, Kansai) * New translations aiscript.md (Chinese Traditional) * New translations api.md (Chinese Traditional) * New translations timelines.md (Chinese Traditional) * New translations api.md (Chinese Traditional) * New translations api.md (Chinese Traditional) * New translations api.md (Chinese Traditional) * New translations create-plugin.md (Chinese Traditional) * New translations keyboard-shortcut.md (Chinese Traditional) * New translations stream.md (Chinese Traditional) * New translations keyboard-shortcut.md (Chinese Traditional) * New translations keyboard-shortcut.md (Chinese Traditional) * New translations create-plugin.md (Chinese Simplified) * New translations create-plugin.md (Chinese Simplified) * New translations create-plugin.md (Chinese Simplified) * New translations create-plugin.md (Chinese Simplified) * New translations aiscript.md (Chinese Traditional) * New translations follow.md (Chinese Traditional) * New translations ja-JP.yml (Chinese Traditional) * New translations follow.md (Chinese Traditional) * New translations ja-JP.yml (Chinese Traditional) * New translations create-plugin.md (Chinese Simplified) * New translations ja-JP.yml (Chinese Traditional) * New translations create-plugin.md (Chinese Simplified) * New translations custom-emoji.md (Chinese Simplified) * New translations ja-JP.yml (Chinese Traditional) * New translations ja-JP.yml (Chinese Simplified) * New translations ja-JP.yml (Chinese Traditional) * New translations ja-JP.yml (Chinese Traditional) * New translations ja-JP.yml (Chinese Traditional) * New translations ja-JP.yml (Chinese Traditional)
This commit is contained in:
		
							
								
								
									
										354
									
								
								src/docs/zh-CN/stream.md
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										354
									
								
								src/docs/zh-CN/stream.md
									
									
									
									
									
										Normal file
									
								
							| @@ -0,0 +1,354 @@ | ||||
| # 流式API | ||||
|  | ||||
| ストリーミングAPIを使うと、リアルタイムで様々な情報(例えばタイムラインに新しい投稿が流れてきた、メッセージが届いた、フォローされた、など)を受け取ったり、様々な操作を行ったりすることができます。 | ||||
|  | ||||
| ## ストリームに接続する | ||||
|  | ||||
| ストリーミングAPIを利用するには、まずMisskeyサーバーに**websocket**接続する必要があります。 | ||||
|  | ||||
| 以下のURLに、`i`というパラメータ名で認証情報を含めて、websocket接続してください。例: | ||||
| ``` | ||||
| %WS_URL%/streaming?i=xxxxxxxxxxxxxxx | ||||
| ``` | ||||
|  | ||||
| 認証情報は、自分のAPIキーや、アプリケーションからストリームに接続する際はユーザーのアクセストークンのことを指します。 | ||||
|  | ||||
| <div class="ui info"> | ||||
|     <p><i class="fas fa-info-circle"></i> 認証情報の取得については、<a href="./api">こちらのドキュメント</a>をご確認ください。</p> | ||||
| </div> | ||||
|  | ||||
| --- | ||||
|  | ||||
| 認証情報は省略することもできますが、その場合非ログインでの利用ということになり、受信できる情報や可能な操作は限られます。例: | ||||
|  | ||||
| ``` | ||||
| %WS_URL%/streaming | ||||
| ``` | ||||
|  | ||||
| --- | ||||
|  | ||||
| ストリームに接続すると、後述するAPI操作や、投稿の購読を行ったりすることができます。 しかしまだこの段階では、例えばタイムラインへの新しい投稿を受信したりすることはできません。 それを行うには、ストリーム上で、後述する**チャンネル**に接続する必要があります。 | ||||
|  | ||||
| **ストリームでのやり取りはすべてJSONです。** | ||||
|  | ||||
| ## 频道 | ||||
| MisskeyのストリーミングAPIにはチャンネルという概念があります。これは、送受信する情報を分離するための仕組みです。 Misskeyのストリームに接続しただけでは、まだリアルタイムでタイムラインの投稿を受信したりはできません。 ストリーム上でチャンネルに接続することで、様々な情報を受け取ったり情報を送信したりすることができるようになります。 | ||||
|  | ||||
| ### チャンネルに接続する | ||||
| チャンネルに接続するには、次のようなデータをJSONでストリームに送信します: | ||||
|  | ||||
| ```json | ||||
| { | ||||
|     type: 'connect', | ||||
|     body: { | ||||
|         channel: 'xxxxxxxx', | ||||
|         id: 'foobar', | ||||
|         params: { | ||||
|             ... | ||||
|         } | ||||
|     } | ||||
| } | ||||
| ``` | ||||
|  | ||||
| ここで、 | ||||
| * `channel`には接続したいチャンネル名を設定します。チャンネルの種類については後述します。 | ||||
| * `id`にはそのチャンネルとやり取りするための任意のIDを設定します。ストリームでは様々なメッセージが流れるので、そのメッセージがどのチャンネルからのものなのか識別する必要があるからです。このIDは、UUIDや、乱数のようなもので構いません。 | ||||
| * `params`はチャンネルに接続する際のパラメータです。チャンネルによって接続時に必要とされるパラメータは異なります。パラメータ不要のチャンネルに接続する際は、このプロパティは省略可能です。 | ||||
|  | ||||
| <div class="ui info"> | ||||
|     <p><i class="fas fa-info-circle"></i> IDはチャンネルごとではなく「チャンネルの接続ごと」です。なぜなら、同じチャンネルに異なるパラメータで複数接続するケースもあるからです。</p> | ||||
| </div> | ||||
|  | ||||
| ### チャンネルからのメッセージを受け取る | ||||
| 例えばタイムラインのチャンネルなら、新しい投稿があった時にメッセージを発します。そのメッセージを受け取ることで、タイムラインに新しい投稿がされたことをリアルタイムで知ることができます。 | ||||
|  | ||||
| チャンネルがメッセージを発すると、次のようなデータがJSONでストリームに流れてきます: | ||||
| ```json | ||||
| { | ||||
|     type: 'channel', | ||||
|     body: { | ||||
|         id: 'foobar', | ||||
|         type: 'something', | ||||
|         body: { | ||||
|             some: 'thing' | ||||
|         } | ||||
|     } | ||||
| } | ||||
| ``` | ||||
|  | ||||
| ここで、 | ||||
| * `id`には前述したそのチャンネルに接続する際に設定したIDが設定されています。これで、このメッセージがどのチャンネルからのものなのか知ることができます。 | ||||
| * `type`にはメッセージの種類が設定されます。チャンネルによって、どのような種類のメッセージが流れてくるかは異なります。 | ||||
| * `body`にはメッセージの内容が設定されます。チャンネルによって、どのような内容のメッセージが流れてくるかは異なります。 | ||||
|  | ||||
| ### チャンネルに向けてメッセージを送信する | ||||
| チャンネルによっては、メッセージを受け取るだけでなく、こちらから何かメッセージを送信し、何らかの操作を行える場合があります。 | ||||
|  | ||||
| チャンネルにメッセージを送信するには、次のようなデータをJSONでストリームに送信します: | ||||
| ```json | ||||
| { | ||||
|     type: 'channel', | ||||
|     body: { | ||||
|         id: 'foobar', | ||||
|         type: 'something', | ||||
|         body: { | ||||
|             some: 'thing' | ||||
|         } | ||||
|     } | ||||
| } | ||||
| ``` | ||||
|  | ||||
| ここで、 | ||||
| * `id`には前述したそのチャンネルに接続する際に設定したIDを設定します。これで、このメッセージがどのチャンネルに向けたものなのか識別させることができます。 | ||||
| * `type`にはメッセージの種類を設定します。チャンネルによって、どのような種類のメッセージを受け付けるかは異なります。 | ||||
| * `body`にはメッセージの内容を設定します。チャンネルによって、どのような内容のメッセージを受け付けるかは異なります。 | ||||
|  | ||||
| ### チャンネルから切断する | ||||
| チャンネルから切断するには、次のようなデータをJSONでストリームに送信します: | ||||
|  | ||||
| ```json | ||||
| { | ||||
|     type: 'disconnect', | ||||
|     body: { | ||||
|         id: 'foobar' | ||||
|     } | ||||
| } | ||||
| ``` | ||||
|  | ||||
| ここで、 | ||||
| * `id`には前述したそのチャンネルに接続する際に設定したIDを設定します。 | ||||
|  | ||||
| ## ストリームを経由してAPIリクエストする | ||||
|  | ||||
| ストリームを経由してAPIリクエストすると、HTTPリクエストを発生させずにAPIを利用できます。そのため、コードを簡潔にできたり、パフォーマンスの向上を見込めるかもしれません。 | ||||
|  | ||||
| ストリームを経由してAPIリクエストするには、次のようなデータをJSONでストリームに送信します: | ||||
| ```json | ||||
| { | ||||
|     type: 'api', | ||||
|     body: { | ||||
|         id: 'xxxxxxxxxxxxxxxx', | ||||
|         endpoint: 'notes/create', | ||||
|         data: { | ||||
|             text: 'yee haw!' | ||||
|         } | ||||
|     } | ||||
| } | ||||
| ``` | ||||
|  | ||||
| ここで、 | ||||
| * `id`には、APIのレスポンスを識別するための、APIリクエストごとの一意なIDを設定する必要があります。UUIDや、簡単な乱数のようなもので構いません。 | ||||
| * `endpoint`には、あなたがリクエストしたいAPIのエンドポイントを指定します。 | ||||
| * `data`には、エンドポイントのパラメータを含めます。 | ||||
|  | ||||
| <div class="ui info"> | ||||
|     <p><i class="fas fa-info-circle"></i> APIのエンドポイントやパラメータについてはAPIリファレンスをご確認ください。</p> | ||||
| </div> | ||||
|  | ||||
| ### レスポンスの受信 | ||||
|  | ||||
| APIへリクエストすると、レスポンスがストリームから次のような形式で流れてきます。 | ||||
|  | ||||
| ```json | ||||
| { | ||||
|     type: 'api:xxxxxxxxxxxxxxxx', | ||||
|     body: { | ||||
|         ... | ||||
|     } | ||||
| } | ||||
| ``` | ||||
|  | ||||
| ここで、 | ||||
| * `xxxxxxxxxxxxxxxx`の部分には、リクエストの際に設定された`id`が含まれています。これにより、どのリクエストに対するレスポンスなのか判別することができます。 | ||||
| * `body`には、レスポンスが含まれています。 | ||||
|  | ||||
| ## 投稿のキャプチャ | ||||
|  | ||||
| Misskeyは投稿のキャプチャと呼ばれる仕組みを提供しています。これは、指定した投稿のイベントをストリームで受け取る機能です。 | ||||
|  | ||||
| 例えばタイムラインを取得してユーザーに表示したとします。ここで誰かがそのタイムラインに含まれるどれかの投稿に対してリアクションしたとします。 | ||||
|  | ||||
| しかし、クライアントからするとある投稿にリアクションが付いたことなどは知る由がないため、リアルタイムでリアクションをタイムライン上の投稿に反映して表示するといったことができません。 | ||||
|  | ||||
| この問題を解決するために、Misskeyは投稿のキャプチャ機構を用意しています。投稿をキャプチャすると、その投稿に関するイベントを受け取ることができるため、リアルタイムでリアクションを反映させたりすることが可能になります。 | ||||
|  | ||||
| ### 投稿をキャプチャする | ||||
|  | ||||
| 投稿をキャプチャするには、ストリームに次のようなメッセージを送信します: | ||||
|  | ||||
| ```json | ||||
| { | ||||
|     type: 'subNote', | ||||
|     body: { | ||||
|         id: 'xxxxxxxxxxxxxxxx' | ||||
|     } | ||||
| } | ||||
| ``` | ||||
|  | ||||
| ここで、 | ||||
| * `id`にキャプチャしたい投稿の`id`を設定します。 | ||||
|  | ||||
| このメッセージを送信すると、Misskeyにキャプチャを要請したことになり、以後、その投稿に関するイベントが流れてくるようになります。 | ||||
|  | ||||
| 例えば投稿にリアクションが付いたとすると、次のようなメッセージが流れてきます: | ||||
|  | ||||
| ```json | ||||
| { | ||||
|     type: 'noteUpdated', | ||||
|     body: { | ||||
|         id: 'xxxxxxxxxxxxxxxx', | ||||
|         type: 'reacted', | ||||
|         body: { | ||||
|             reaction: 'like', | ||||
|             userId: 'yyyyyyyyyyyyyyyy' | ||||
|         } | ||||
|     } | ||||
| } | ||||
| ``` | ||||
|  | ||||
| ここで、 | ||||
| * `body`内の`id`に、イベントを発生させた投稿のIDが設定されます。 | ||||
| * `body`内の`type`に、イベントの種類が設定されます。 | ||||
| * `body`内の`body`に、イベントの詳細が設定されます。 | ||||
|  | ||||
| #### イベントの種類 | ||||
|  | ||||
| ##### `reacted` | ||||
| その投稿にリアクションがされた時に発生します。 | ||||
|  | ||||
| * `reaction`に、リアクションの種類が設定されます。 | ||||
| * `userId`に、リアクションを行ったユーザーのIDが設定されます。 | ||||
|  | ||||
| 例: | ||||
| ```json | ||||
| { | ||||
|     type: 'noteUpdated', | ||||
|     body: { | ||||
|         id: 'xxxxxxxxxxxxxxxx', | ||||
|         type: 'reacted', | ||||
|         body: { | ||||
|             reaction: 'like', | ||||
|             userId: 'yyyyyyyyyyyyyyyy' | ||||
|         } | ||||
|     } | ||||
| } | ||||
| ``` | ||||
|  | ||||
| ##### `deleted` | ||||
| その投稿が削除された時に発生します。 | ||||
|  | ||||
| * `deletedAt`に、削除日時が設定されます。 | ||||
|  | ||||
| 例: | ||||
| ```json | ||||
| { | ||||
|     type: 'noteUpdated', | ||||
|     body: { | ||||
|         id: 'xxxxxxxxxxxxxxxx', | ||||
|         type: 'deleted', | ||||
|         body: { | ||||
|             deletedAt: '2018-10-22T02:17:09.703Z' | ||||
|         } | ||||
|     } | ||||
| } | ||||
| ``` | ||||
|  | ||||
| ##### `pollVoted` | ||||
| その投稿に添付されたアンケートに投票された時に発生します。 | ||||
|  | ||||
| * `choice`に、選択肢IDが設定されます。 | ||||
| * `userId`に、投票を行ったユーザーのIDが設定されます。 | ||||
|  | ||||
| 例: | ||||
| ```json | ||||
| { | ||||
|     type: 'noteUpdated', | ||||
|     body: { | ||||
|         id: 'xxxxxxxxxxxxxxxx', | ||||
|         type: 'pollVoted', | ||||
|         body: { | ||||
|             choice: 2, | ||||
|             userId: 'yyyyyyyyyyyyyyyy' | ||||
|         } | ||||
|     } | ||||
| } | ||||
| ``` | ||||
|  | ||||
| ### 投稿のキャプチャを解除する | ||||
|  | ||||
| その投稿がもう画面に表示されなくなったりして、その投稿に関するイベントをもう受け取る必要がなくなったときは、キャプチャの解除を申請してください。 | ||||
|  | ||||
| 次のメッセージを送信します: | ||||
|  | ||||
| ```json | ||||
| { | ||||
|     type: 'unsubNote', | ||||
|     body: { | ||||
|         id: 'xxxxxxxxxxxxxxxx' | ||||
|     } | ||||
| } | ||||
| ``` | ||||
|  | ||||
| ここで、 | ||||
| * `id`にキャプチャを解除したい投稿の`id`を設定します。 | ||||
|  | ||||
| このメッセージを送信すると、以後、その投稿に関するイベントは流れてこないようになります。 | ||||
|  | ||||
| # チャンネル一覧 | ||||
| ## `main` | ||||
| アカウントに関する基本的な情報が流れてきます。このチャンネルにパラメータはありません。 | ||||
|  | ||||
| ### 流れてくるイベント一覧 | ||||
|  | ||||
| #### `renote` | ||||
| 自分の投稿がRenoteされた時に発生するイベントです。自分自身の投稿をRenoteしたときは発生しません。 | ||||
|  | ||||
| #### `mention` | ||||
| 誰かからメンションされたときに発生するイベントです。 | ||||
|  | ||||
| #### `readAllNotifications` | ||||
| 自分宛ての通知がすべて既読になったことを表すイベントです。このイベントを利用して、「通知があることを示すアイコン」のようなものをオフにしたりする等のケースが想定されます。 | ||||
|  | ||||
| #### `meUpdated` | ||||
| 自分の情報が更新されたことを表すイベントです。 | ||||
|  | ||||
| #### `follow` | ||||
| 自分が誰かをフォローしたときに発生するイベントです。 | ||||
|  | ||||
| #### `unfollow` | ||||
| 自分が誰かのフォローを解除したときに発生するイベントです。 | ||||
|  | ||||
| #### `followed` | ||||
| 自分が誰かにフォローされたときに発生するイベントです。 | ||||
|  | ||||
| ## `homeTimeline` | ||||
| ホームタイムラインの投稿情報が流れてきます。このチャンネルにパラメータはありません。 | ||||
|  | ||||
| ### 流れてくるイベント一覧 | ||||
|  | ||||
| #### `note` | ||||
| タイムラインに新しい投稿が流れてきたときに発生するイベントです。 | ||||
|  | ||||
| ## `localTimeline` | ||||
| ローカルタイムラインの投稿情報が流れてきます。このチャンネルにパラメータはありません。 | ||||
|  | ||||
| ### 流れてくるイベント一覧 | ||||
|  | ||||
| #### `note` | ||||
| ローカルタイムラインに新しい投稿が流れてきたときに発生するイベントです。 | ||||
|  | ||||
| ## `hybridTimeline` | ||||
| ソーシャルタイムラインの投稿情報が流れてきます。このチャンネルにパラメータはありません。 | ||||
|  | ||||
| ### 流れてくるイベント一覧 | ||||
|  | ||||
| #### `note` | ||||
| ソーシャルタイムラインに新しい投稿が流れてきたときに発生するイベントです。 | ||||
|  | ||||
| ## `globalTimeline` | ||||
| グローバルタイムラインの投稿情報が流れてきます。このチャンネルにパラメータはありません。 | ||||
|  | ||||
| ### 流れてくるイベント一覧 | ||||
|  | ||||
| #### `note` | ||||
| グローバルタイムラインに新しい投稿が流れてきたときに発生するイベントです。 | ||||
		Reference in New Issue
	
	Block a user
	 syuilo
					syuilo