@playkit-js/playkit-js
Version:
[](https://github.com/kaltura/playkit-js/actions/workflows/run_canary.yaml) [ • 421 B
text/typescript
/**
* Base middleware.
* @classdesc
*/
export default class BaseMiddleware {
/**
* Id of the middleware instance.
* @public
*/
public id!: string;
/**
* Calls the next handler in the middleware chain.
* @param {Function} next - The next handler in the middleware chain.
* @returns {void}
*/
public callNext(next: (...args: any[]) => any): void {
if (next) {
next();
}
}
}