I am going to create real time web application and would like to use WebRTC RTCDataChannel to exchange data between client and server.
WebRTC is created for peer-to-peer communication. However, is it possible to do data exchanging between server and client?
Yes! You could use a WebRTC implementation and build your server from the ground up. Will feel like using a HTTP library and setting your own endpoints.
Or you could run a WebRTC server and write an extension/modify it. This will get you something working quicker.
Happy to answer more directed questions. I think it depends on what languages/tools you feel comfortable with.