mirror of
https://github.com/m1k1o/neko.git
synced 2025-05-17 02:57:04 +02:00
update to pion v3
This commit is contained in:
parent
00a785f4c5
commit
a362df4976
14 changed files with 211 additions and 84 deletions
|
@ -120,6 +120,16 @@ func (session *Session) SignalAnswer(sdp string) error {
|
|||
return session.peer.SignalAnswer(sdp)
|
||||
}
|
||||
|
||||
func (session *Session) SignalCandidate(data string) error {
|
||||
if session.socket == nil {
|
||||
return nil
|
||||
}
|
||||
return session.socket.Send(&message.SignalCandidate{
|
||||
Event: event.SIGNAL_CANDIDATE,
|
||||
Data: data,
|
||||
});
|
||||
}
|
||||
|
||||
func (session *Session) destroy() error {
|
||||
if session.socket != nil {
|
||||
if err := session.socket.Destroy(); err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue