Skip to content

Commit

Permalink
feat: add MediasoupRouterService
Browse files Browse the repository at this point in the history
  • Loading branch information
woody146 committed Jun 8, 2023
1 parent 957e14a commit c6647fb
Show file tree
Hide file tree
Showing 8 changed files with 59 additions and 259 deletions.
254 changes: 1 addition & 253 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
"dotenv": "^16.1.4",
"fastify": "^4.17.0",
"mediasoup": "^3.12.3",
"node-fetch": "^3.3.1",
"pg": "^8.11.0",
"reflect-metadata": "^0.1.13",
"typeorm": "^0.3.16"
Expand Down
3 changes: 3 additions & 0 deletions src/entities/mediasoup.room.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ export class MediasoupRoom extends BaseEntity {
@PrimaryGeneratedColumn('uuid')
id!: string;

@Column('text')
routerId!: string;

@Column({ type: 'jsonb', nullable: true })
metadata?: any;

Expand Down
2 changes: 2 additions & 0 deletions src/run_master.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import 'node-fetch';

import { startServer } from './utils/index.js';

startServer([
Expand Down
Loading

0 comments on commit c6647fb

Please sign in to comment.