API reference / @evolu/common / Resources
Resources
Interfaces
| Interface | Description |
|---|---|
| ConsumerNotFoundError | Error when trying to remove a consumer that wasn't added to a resource. |
| ResourceNotFoundError | Error when trying to remove a consumer from a resource that doesn't exist. |
| Resources | A generic resource manager that handles reference counting and delayed disposal of shared resources. Useful for managing expensive resources like WebSocket connections that need to be shared among multiple consumers. |
| ResourcesConfig | - |
Functions
| Function | Description |
|---|---|
| createResources | Creates Resources. |