Type aliases
AccessToken
AccessToken: { access_token: string; expires_in: number; token_type: string }
Type declaration
-
access_token: string
-
expires_in: number
-
token_type: string
Contribution
Contribution: { agentId?: string; data?: string; environmentId?: string; id?: string; type: string }
Type declaration
-
Optional agentId?: string
-
Optional data?: string
-
Optional environmentId?: string
-
Optional id?: string
-
type: string
ContributionEvent
Contribution
Event<T>: { contribution?: SupportedContribution<T>; id: string; type: ContributionTypes }
Type parameters
-
T: SupportedContributionsKey
Type declaration
-
Optional contribution?: SupportedContribution<T>
-
id: string
-
ContributionsEvent
Contributions
Event: { agentId: string; contribution: CONTRIBUTION | WITHDRAWAL; data: string; environmentId: string; id: string; type: string }
Type declaration
-
agentId: string
-
-
data: string
-
environmentId: string
-
id: string
-
type: string
LogLevel
LogLevel: "trace" | "debug" | "warn" | "info" | "error"
MessageEvent
MessageEvent: { messageId: string; payload: string; senderId: string; timestamp: string; type: string }
Type declaration
-
messageId: string
-
payload: string
-
senderId: string
-
timestamp: string
-
type: string
PresenceEvent
Presence
Event: { agentId: string; environmentId: string; type: ARRIVAL | DEPARTURE }
Type declaration
-
agentId: string
-
environmentId: string
-
StorageEvent
Storage
Event: { agentId: string; environmentId: string; key: string; type: WRITE | REMOVE; value: string }
Type declaration
-
agentId: string
-
environmentId: string
-
key: string
-
-
value: string
StreamContributionElements
Stream
ContributionElements: { audioStream: MediaStream; inputEmitter: InputEmitter; messageReceiver: Subject<string>; peerConnection: RTCPeerConnection; videoStream: MediaStream }
Type declaration
-
audioStream: MediaStream
-
-
messageReceiver: Subject<string>
-
peerConnection: RTCPeerConnection
-
videoStream: MediaStream