]> Untitled Git - lemmy.git/commit
Adding websocket notification system.
authorDessalines <tyhou13@gmx.com>
Sun, 19 Apr 2020 22:08:25 +0000 (18:08 -0400)
committerDessalines <tyhou13@gmx.com>
Sun, 19 Apr 2020 22:08:25 +0000 (18:08 -0400)
commitf300c67a4d9674eef05d180a787cc8352092903d
tree49d076d128d065403f5690f92900bdd0679f2d66
parentbe6a7876b49e8f963506f0b05e12495f119afc10
Adding websocket notification system.

- HTTP and APUB clients can now send live updating messages to websocket
  clients
- Rate limiting now affects both HTTP and websockets
- Rate limiting / Websocket logic is now moved into the API Perform
  functions.
- TODO This broke getting current online users, but that will have to
  wait for the perform trait to be made async.
- Fixes #446
21 files changed:
server/Cargo.lock
server/src/api/comment.rs
server/src/api/community.rs
server/src/api/mod.rs
server/src/api/post.rs
server/src/api/site.rs
server/src/api/user.rs
server/src/lib.rs
server/src/main.rs
server/src/rate_limit/mod.rs [new file with mode: 0644]
server/src/rate_limit/rate_limiter.rs [new file with mode: 0644]
server/src/routes/api.rs
server/src/routes/federation.rs
server/src/routes/feeds.rs
server/src/routes/index.rs
server/src/routes/mod.rs
server/src/routes/nodeinfo.rs
server/src/routes/webfinger.rs
server/src/routes/websocket.rs
server/src/websocket/mod.rs
server/src/websocket/server.rs