WebRtcEndpoint webRtcEP1 = mp.newWebRtcEndpoint().build();
WebRtcEndpoint webRtcEP2 = mp.newWebRtcEndpoint().build();
Dispatcher dispatcher = mp.newDispatcher().build();
HubPort hubPort1 = dispatcher.newHubPort().build();
HubPort hubPort2 = dispatcher.newHubPort().build();
webRtcEP1.connect(hubPort1);
hubPort2.connect(webRtcEP2);
dispatcher.connect(hubPort1, hubPort2);