Created
January 31, 2018 17:21
-
-
Save deviantfero/e0cf24548dbd4429a9b0454da600f555 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
type MatchMessage = { | |
type: MessageType.MATCHED | |
match: string | |
offer: boolean | |
} | |
type SDPMessage = { | |
type: MessageType.SDP | |
sdp: string | |
} | |
type ICEMessage = { | |
type: MessageType.ICE | |
candidate: string, | |
label: number, | |
id: string | |
} | |
type PeerLeft = { | |
type: MessageType.PEER_LEFT | |
} | |
type ClientMessage = MatchMessage | |
| SDPMessage | |
| ICEMessage | |
| PeerLeft |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment