mirror of
https://github.com/aurora-opensource/xviz.git
synced 2026-01-25 14:16:45 +00:00
Proper module to replace our adhoc server script with a structured middleware-based implementation. Key documents are: - RFC ./dev-docs/004-server-module-rfc.md - User Docs ./docs/api-reference/server - Module Readme ./modules/server/README.md
29 lines
687 B
Markdown
29 lines
687 B
Markdown
# XVIZServerMiddlewareStack
|
|
|
|
XVIZServerMiddlewareStack defines and conforms to the
|
|
[Middleware Interface](/docs/api-reference/io/overview-middleware.md) and routes messages through
|
|
the middleware stack.
|
|
|
|
It serves as the entrypoint to the entire middleware dataflow.
|
|
|
|
## Constructor
|
|
|
|
## XVIZServerMiddlewareStack(middlewares)
|
|
|
|
Parameters:
|
|
|
|
- `middlewares` (Array) - Set of middleware components
|
|
|
|
## Methods
|
|
|
|
##### set(middlewares)
|
|
|
|
Sets the middleware stack.
|
|
|
|
Useful when you must construct the stack after construction of the XVIZServerMiddlewareStack
|
|
instance due to it being a dependency of a middleware component.
|
|
|
|
Parameters:
|
|
|
|
- `middlewares` (Array) - Set of middleware components
|