Skip to content

akfork/go-webrtc-signaling

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

go-webrtc-signaling

webrtc signaling server

signal server

peers

{
‘user_id’:system
‘type’:’peers’
‘room’:’default’,
‘message’:{‘users’:[]}
}

offer

{
‘user_id’:xxx,
‘type’:’offer’,
‘room’:’room’
‘message’:
	{
		‘targetUserId’:’’,
		‘eventName’:’offer’,
		
		‘data’:{
			‘offer’:{
				‘type’:’’
				‘sdp’:’’
			}
			'connectionId':str
		}
	}
}

answer

{
‘user_id’:xxx,
‘type’:’answer’,
‘room’:’room’
‘message’:
	{
		‘targetUserId’:’’,
		‘eventName’:’answer’,
		‘data’:{
			‘answer’:{
				‘type’:’’
				‘sdp’:’’
			},
			'connectionId':str
		}
	}
}

ice

{
‘user_id’:xxx,
‘type’:’offer’,
‘room’:’room’
‘message’:
	{
		‘targetUserId’:’’,
		‘eventName’:’offer’,
		‘data’:{
			‘iceCandidate’:{
				
			},
			'connectionId':str
		}
	}
}

peer_removed

{

'user_id':xxx
'type':'peer_removed'
'room':'xxx'
'message':'xxxx'
}

peer_connected

{

'user_id':xxx
'type':'peer_connected'
'room':'xxx'
'message':'xxxx'
}

Releases

No releases published

Packages

No packages published