summaryrefslogtreecommitdiff
path: root/packages/backend/src/server/api/StreamingApiServerService.ts (follow)
Commit message (Collapse)AuthorAgeFilesLines
* lint and type fixesHazelnoot2025-04-011-2/+4
|
* Merge branch 'develop' into merge/2025-03-24Hazelnoot2025-03-311-35/+63
|\ | | | | | | | | | | # Conflicts: # packages/backend/src/server/api/StreamingApiServerService.ts # packages/backend/src/server/api/stream/Connection.ts
| * fix wsmessage rate limit definitionHazelnoot2025-03-291-1/+2
| |
| * limit the number of active connections per client, and limit upgrade ↵Hazelnoot2025-03-281-18/+52
| | | | | | | | requests by user
| * convert streaming rate limit to bucketHazelnoot2025-03-281-21/+14
| |
* | merge upstreamHazelnoot2025-03-251-3/+0
|\ \ | |/ |/|
| * Feat: Chat (#15686)syuilo2025-03-241-3/+0
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wip * wip * wip * wip * wip * wip * Update types.ts * Create 1742203321812-chat.js * wip * wip * Update room.vue * Update home.vue * Update home.vue * Update ja-JP.yml * Update index.d.ts * wip * wip * wip * wip * wip * wip * wip * wip * wip * wip * Update CHANGELOG.md * wip * Update home.vue * clean up * Update misskey-js.api.md * wip * wip * wip * wip * wip * wip * wip * wip * wip * lint fixes * lint * Update UserEntityService.ts * search * wip * 🎨 * wip * Update home.ownedRooms.vue * wip * Update CHANGELOG.md * Update style.scss * wip * improve performance * improve performance * Update timeline.test.ts
* | adjust compression fallbackPrivateGER2025-03-181-1/+1
| |
* | linter fixPrivateGER2025-02-261-1/+1
| |
* | Optionally enable websocket compressionPrivateGER2025-02-251-0/+5
| |
* | move SkRateLimiterService to correct directoryHazelnoot2025-02-051-1/+1
| |
* | lookup and cache rate limit factors directly within SkRateLimiterServiceHazelnoot2025-02-051-11/+5
| |
* | separate SkRateLimiterService from RateLimiterService and update all usagesHazelnoot2024-12-071-11/+9
| |
* | make the cap of `activeRateLimitRequests` match the rate limitdakkar2024-08-181-1/+1
| | | | | | | | | | | | | | | | It's trivial to have more than 128 requests in flight: open a busy timeline, scroll a bit down, wait for many notes to arrive, scroll to the top. The frontend will send "subscribe to note" messages for each new note that it accumulated, all at once. We don't want to shut down the connection in those common cases!
* | relax websocket rate limitsdakkar2024-08-181-3/+6
| | | | | | | | | | | | | | * the frontend opens 2 websockets at startup (I'm not completely clear why), and that `minInterval:1sec` was breaking the second connection * as the comment says, "catching up" generates many noteSubscribe messages
* | Add IP and user ID to connection close messageJulia Johannesen2024-08-171-1/+1
| |
* | Come up with better limitsJulia Johannesen2024-08-171-4/+4
| |
* | Fix logging stuffJulia Johannesen2024-08-171-1/+0
| |
* | Limit number of rate limit requestsJulia Johannesen2024-08-161-0/+5
| |
* | use the correct remote addressdakkar2024-08-161-3/+11
| | | | | | | | | | we're doing the same thing that Fastify does in the non-streaming ServerService
* | rough rate limiting for websocketsdakkar2024-08-151-0/+48
|/
* (re) update SPDX-FileCopyrightTexttamaina2024-02-131-1/+1
| | | | Fix #13290
* Revert "update SPDX-FileCopyrightText"tamaina2024-02-131-1/+1
| | | | This reverts commit 9b5aeb76d8c9372d67058c512597152b6bf222f2.
* update SPDX-FileCopyrightTextsyuilo2024-02-121-1/+1
|
* Merge pull request from GHSA-7pxq-6xx9-xpgmChocolate Pie2023-12-271-0/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * fix: fix improper authorization when accessing with third-party application * refactor: refactor type definitions * fix: get rid of unnecessary access limitation * enhance: サードパーティアプリケーションがWebsocket APIを使えるように * fix: add missing parentheses * Revert "fix(backend): add missing kind definition for admin endpoints to improve security" This reverts commit 5150053275594278e9eb23e72d98b16593c4c230. * frontend: 翻訳の抜けを訂正, read:adminとwrite:adminはアクセス発行トークンのデフォルトでは非表示にする * enhance(test): misskey-ghsa-7pxq-6xx9-xpgmに関するテストを追加 * enhance(test): Websocket APIに対するテストも追加 * enhance(refactor): `@/misc/api-permissions.ts`を`misskey-js/permissions`に統合 * fix(frontend): アクセストークン発行UIで全ての権限を有効にした際、管理者用APIへのアクセスも許可してしまう問題を修正 * enhance(backend): Websocketの接続に最低限必要な権限を変更 * fix(backend): `/api/admin/meta`をサードパーティアプリケーションからはアクセスできないように * fix(backend): エンドポイントにアクセスするために必要な権限を変更 * fix(frontend/locale): Add missing type declaration * chore: update `misskey-js/src/autogen` --------- Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* Fix: ↵おさむのひと2023-10-271-0/+3
| | | | | | | | | | | | | チャンネルのフォロー・アンフォローの反映速度を改善 (#12149) * チャンネルのフォロー・アンフォローの反映速度を改善 * fix lint * userFollowingChannelsCacheの場所をCacheServiceからChannelFollowingServiceに移動 --------- Co-authored-by: osamu <46447427+sam-osamu@users.noreply.github.com>
* feat: improve tl performance (#11946)syuilo2023-10-031-6/+4
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * wip * wip * wip * wip * wip * wip * Update NoteCreateService.ts * wip * wip * wip * wip * Update NoteCreateService.ts * wip * Update NoteCreateService.ts * wip * Update user-notes.ts * wip * wip * wip * Update NoteCreateService.ts * wip * Update timeline.ts * Update timeline.ts * Update timeline.ts * Update timeline.ts * Update timeline.ts * wip * Update timelines.ts * Update timelines.ts * Update timelines.ts * wip * wip * wip * Update timelines.ts * Update misskey-js.api.md * Update timelines.ts * Update timelines.ts * wip * wip * wip * Update timelines.ts * wip * Update timelines.ts * wip * test * Update activitypub.ts * refactor: UserListJoining -> UserListMembership * Update NoteCreateService.ts * wip
* refactor(backend): update directory structure for modelssyuilo2023-09-201-1/+1
|
* update deps (#11820)syuilo2023-09-151-2/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * update deps * fix * wip * wip * wip * Update docker-compose.yml.example * Delete reviewer-lottery.yml * Update RepositoryModule.ts * wip * wip * clean up * update deps * wip * wip
* refactor: prefix Mi for all entities (#11719)syuilo2023-08-161-6/+6
| | | | | | | | | | | | | | | | | | | | | * wip * wip * wip * wip * Update RepositoryModule.ts * wip * wip * wip * Revert "wip" This reverts commit c1c13b37d2aaf3c65bc148212da302b0eb7868bf.
* refactor(backend): Remove unused injections (#11462)woxtu2023-08-051-5/+0
| | | | | * Remove unused injections * Remove unused imports
* chore: ↵Shun Sakai2023-07-271-0/+5
| | | | | | | | | | | | | | 著作権とライセンスについての情報を各ファイルに追加する (#11348) * chore: Add the SPDX information to each file Add copyright and licensing information as defined in version 3.0 of the REUSE Specification. * tweak format --------- Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* perf(backend): JSON.parse の呼び出しを削減する (#11091)riku64602023-07-041-5/+11
| | | | | | | | | | | * perf(backend): JSON.parse の呼び出しを削減する Co-authored-by: Hidekazu Kobayashi <kobahide789@gmail.com> * Update CHANGELOG.md --------- Co-authored-by: Hidekazu Kobayashi <kobahide789@gmail.com>
* feat(backend): accept OAuth bearer token (#11052)Kagami Sascha Rosylight2023-06-281-2/+12
| | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat(backend): accept OAuth bearer token * refactor * Update packages/backend/src/server/api/ApiCallService.ts Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> * Update packages/backend/src/server/api/ApiCallService.ts Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> * fix * kind: permission for account moved error * also for suspended error * Update packages/backend/src/server/api/StreamingApiServerService.ts Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> --------- Co-authored-by: Acid Chicken (硫酸鶏) <root@acid-chicken.com> Co-authored-by: syuilo <Syuilotan@yahoo.co.jp>
* refactor(backend): use node16 for moduleResolution (#10938)syuilo2023-06-251-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | * refactor(backend): use node16 for moduleResolution * update deps * Update tsconfig.json * :v: * revive KEYWORD * restore strict-event-emitter-types dependency * restore ms dependency * cancel redundant import reorder * fix * Delete ms.ts * remove rndstr --------- Co-authored-by: Kagami Sascha Rosylight <saschanaz@outlook.com>
* enhance(backend): ↵syuilo2023-06-091-6/+5
| | | | | | WebSocketのPing/Pongをプロトコル制御フレームの物で判別する Resolve #10969
* choresyuilo2023-06-091-0/+1
|
* add notesyuilo2023-06-091-0/+1
|
* perf(backend): terminate stalled websocket connectionssyuilo2023-06-021-2/+21
| | | | Resolve #10885
* perf(backend): use websockets/ws instead of theturtle32/WebSocket-Node (#10884)syuilo2023-05-291-48/+67
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | * perf(backend): use websockets/ws instead of theturtle32/WebSocket-Node Resolve #10883 * refactor * Update StreamingApiServerService.ts * Update StreamingApiServerService.ts * :v: * Update StreamingApiServerService.ts * fix main stream init * fix timing 2 * setIntervalの重複を避ける(気休め) * add comment * :v: --------- Co-authored-by: tamaina <tamaina@hotmail.co.jp>
* fix typessyuilo2023-04-141-1/+1
|
* fix(backend): イベント用redis分離が上手く動かない問題を修正syuilo2023-04-091-4/+4
|
* feat(backend): イベント用Redisを別サーバーに分離できるようにsyuilo2023-04-071-4/+4
|
* enhance(backend): improve cachesyuilo2023-04-051-11/+10
|
* feat: Per-user renote mute (#10249)syuilo2023-03-081-2/+6
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | * feat: per-user renote muting From FoundKey/c414f24a2c https://akkoma.dev/FoundKeyGang/FoundKey * Update ja-JP.yml * Delete renote-muting.ts * rename * fix ids * lint * fix * Update CHANGELOG.md * リノートをミュートしたユーザー一覧を見れるように * :art: * add test * fix test --------- Co-authored-by: Hélène <pleroma-dev@helene.moe>
* refactor: introduce bindThis decorator to bind this automaticalysyuilo2022-12-041-0/+2
|
* fixessyuilo2022-09-241-1/+1
|
* fix import typesyuilo2022-09-211-2/+2
|
* なんかもうめっちゃ変えたsyuilo2022-09-181-0/+120