Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
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