Commit graph

8 commits

Author SHA1 Message Date
Dessalines
ac03cfe2a1 Merge branch 'asonix-abstract_websocket_sends' into abstract_websocket_sends 2020-04-20 15:03:32 -04:00
7fa97614f8 Remove unused methods 2020-04-20 13:09:10 -05:00
63b2bde448 Use get_ip in ratelimit middleware 2020-04-20 13:02:25 -05:00
e66b07b96c Give ratelimit fields explicit names 2020-04-20 12:51:42 -05:00
Dessalines
b283faf22d Changing warn to debug for rate limiting message. 2020-04-20 10:45:14 -04:00
2a0f170d58 appease clippy 2020-04-19 23:43:30 -05:00
b55e9c08df Change RateLimit to act as a middleware 2020-04-19 22:59:07 -05:00
Dessalines
6f14f0756b 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
2020-04-19 18:08:25 -04:00