See the Tutorial on Scotch.io - Built with the PubNub WebRTC SDK - Github
To Use:
Enter a username and click Log in button. If input turns green you are ready to receive/place a call.
In a separate browser window, log in with a different username, and place a call to the first. Play!
See More WebRTC