The ServerSideEventSender service and DeferredEventSubscriber are registered on every request even when no module uses server-side event sending. Most installations only need the JS SDK.
This moves the server-side infrastructure into a new pianoanalytics_server submodule:
- ServerSideEventSender (namespace: Drupal\pianoanalytics_server)
- DeferredEventSubscriber
- Kernel tests
The base pianoanalytics module stays JS-only with zero overhead from server-side event code. Modules that need server-side sending (e.g. pianoanalytics_shorturl) depend on pianoanalytics_server instead.
Issue fork pianoanalytics-3584656
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #3
mably commentedComment #5
mably commented