node-webrtc / node-webrtc-examples

MediaStream and RTCDataChannel examples using node-webrtc
508 stars 161 forks source link

can we create offer by client and create answer by server? #48

Open zhejinjiang opened 2 years ago

zhejinjiang commented 2 years ago

because create offer by server need client call api twice. but if create offer by client and connect status is always "new"?

zhejinjiang commented 2 years ago

and we need client create a datachannel, and server get datachannel and send data to client by it.