import { Spark } from 'primus' import { MediaTagType } from '@xrengine/common/src/interfaces/MediaStreamConstants' import { NetworkId } from '@xrengine/common/src/interfaces/NetworkId' import { PeerID } from '@xrengine/common/src/interfaces/PeerID' import { UserId } from '@xrengine/common/src/interfaces/UserId' export interface NetworkPeer { userId: UserId userIndex: number spectating?: boolean networkId?: NetworkId // to easily retrieve the network object correspending to this client // The following properties are only present on the server spark?: Spark peerIndex: number peerID: PeerID lastSeenTs?: any joinTs?: any media?: Record consumerLayers?: {} stats?: {} instanceSendTransport?: any instanceRecvTransport?: any channelSendTransport?: any channelRecvTransport?: any dataConsumers?: Map // Key => id of data producer dataProducers?: Map // Key => label of data channel} } export interface UserClient { userId: UserId name: string }