forked from Shiloh/remnantchat
refactor: use Room type
This commit is contained in:
parent
56751f4c23
commit
a86e2d6592
@ -1,7 +1,7 @@
|
|||||||
import { joinRoom } from 'trystero'
|
import { joinRoom, Room } from 'trystero'
|
||||||
|
|
||||||
export class PeerRoom {
|
export class PeerRoom {
|
||||||
room: any
|
private room?: Room
|
||||||
|
|
||||||
joinRoom(appId: string, roomId: string) {
|
joinRoom(appId: string, roomId: string) {
|
||||||
this.room = joinRoom({ appId }, roomId)
|
this.room = joinRoom({ appId }, roomId)
|
||||||
|
Loading…
Reference in New Issue
Block a user