Pointer position is sent to the roomserver 10 times each second when using excalidraw

Summary

When using the excalidraw module, the web app sends the pointer position to the roomserver ~10x per second. The default rate limit of the roomserver has a bucket size of 30 and adds 10 buckets per second. This means that the web app will run into the rate limit when using excalidraw. When running into the rate limit, the web app is disconnected, which also seems wrong but this might be a backend issue.

Steps to reproduce the bug

  1. Open the websocket messages in the browser
  2. Start an excalidraw session
  3. Draw a line and observe websocket messages

Acceptance Criteria

  • Excalidraw should not exceed the default rate limit

Logs and/or screenshots

image