xhs / librtcdc

Tiny portable WebRTC Data Channel in C.
Other
247 stars 39 forks source link

on_close callback function is not implemented #3

Open xhs opened 9 years ago

xhs commented 9 years ago

How to close a data channel?

Sfinx commented 8 years ago

You can see how it is done at janus https://github.com/meetecho/janus-gateway

saghul commented 8 years ago

FYI: Janus is GPL licensed.

Sfinx commented 8 years ago

I did not mean dumb code copying - just check how the channel is closed using appropriate SCTP message. BTW next serious problem after rtdc_close() is keepalive for candidate/datachannel.

Sfinx commented 8 years ago

Ugly hack is to use keepalive "lost" event as rtdc_close() trigger