mirror of https://github.com/msgbyte/tailchat
You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
538 B
TypeScript
23 lines
538 B
TypeScript
|
3 years ago
|
import { TcService, TcDbService } from 'tailchat-server-sdk';
|
||
|
|
import type { LivekitDocument, LivekitModel } from '../models/livekit';
|
||
|
|
|
||
|
|
/**
|
||
|
|
* livekit
|
||
|
|
*
|
||
|
|
* Add livekit to provide meeting and live streaming feature
|
||
|
|
*/
|
||
|
|
interface LivekitService
|
||
|
|
extends TcService,
|
||
|
|
TcDbService<LivekitDocument, LivekitModel> {}
|
||
|
|
class LivekitService extends TcService {
|
||
|
|
get serviceName() {
|
||
|
|
return 'plugin:com.msgbyte.livekit';
|
||
|
|
}
|
||
|
|
|
||
|
|
onInit() {
|
||
|
|
this.registerLocalDb(require('../models/livekit').default);
|
||
|
|
}
|
||
|
|
}
|
||
|
|
|
||
|
|
export default LivekitService;
|