connection type event.

This commit is contained in:
Miroslav Šedivý
2021-08-10 19:15:44 +02:00
parent 3d48152ccf
commit d3d37de009
2 changed files with 14 additions and 7 deletions

View File

@ -10,6 +10,7 @@ import NekoState from '../types/state'
export interface NekoEvents {
// connection events
['connection.status']: (status: 'connected' | 'connecting' | 'disconnected') => void
['connection.type']: (status: 'fallback' | 'webrtc' | 'none') => void
['connection.webrtc.sdp']: (type: 'local' | 'remote', data: string) => void
['connection.webrtc.sdp.candidate']: (type: 'local' | 'remote', data: RTCIceCandidateInit) => void
['connection.closed']: (error?: Error) => void