Updated to support new webrtc sockets.