You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/browser/architecture/ARCHITECTURE.md
+8-7Lines changed: 8 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -39,7 +39,7 @@ graph TD
39
39
end
40
40
```
41
41
42
-
### Plugin Types Explanation
42
+
### Plugin Types and Middleware
43
43
[This information is also available in the Segment documentation](https://segment.com/docs/connections/sources/catalog/libraries/website/javascript/#plugins-and-source-middleware)
44
44
45
45
-**Source Middleware** (see [Example](#example-source-middleware-implementation))
@@ -73,7 +73,7 @@ graph TD
73
73
- Do not directly process events
74
74
- Example: some plugin that registers a bunch of analytics event listeners (e.g. analytics.on('track', ...) and reports them to an external system)
75
75
76
-
-**Add Destination Middleware** (See [Example](#example-destination-middleware-implementation))
76
+
-**Destination Middleware** (See [Example](#example-destination-middleware-implementation))
77
77
- A special type of plugin that allows you to add a plugin that only affects a specific (device mode) destination plugin.
78
78
79
79
@@ -116,7 +116,7 @@ analytics.addSourceMiddleware(({ payload, next }) => {
0 commit comments