forked from peers/peerjs
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathoptionInterfaces.ts
51 lines (48 loc) · 1.21 KB
/
optionInterfaces.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
export interface AnswerOption {
/**
* Function which runs before create answer to modify sdp answer message.
*/
sdpTransform?: Function;
}
export interface PeerJSOption {
key?: string;
host?: string;
port?: number;
path?: string;
secure?: boolean;
token?: string;
config?: RTCConfiguration;
debug?: number;
referrerPolicy?: ReferrerPolicy;
}
export interface PeerConnectOption {
/**
* A unique label by which you want to identify this data connection.
* If left unspecified, a label will be generated at random.
*
* Can be accessed with {@apilink DataConnection.label}
*/
label?: string;
/**
* Metadata associated with the connection, passed in by whoever initiated the connection.
*
* Can be accessed with {@apilink DataConnection.metadata}.
* Can be any serializable type.
*/
metadata?: any;
serialization?: string;
reliable?: boolean;
}
export interface CallOption {
/**
* Metadata associated with the connection, passed in by whoever initiated the connection.
*
* Can be accessed with {@apilink MediaConnection.metadata}.
* Can be any serializable type.
*/
metadata?: any;
/**
* Function which runs before create offer to modify sdp offer message.
*/
sdpTransform?: Function;
}