Create the mock NAP-WEBRTC service.
Loopback behavior, limits and identities.
A ServiceHandler for runtime.registerService('webrtc', …) with mock controls.
ServiceHandler
runtime.registerService('webrtc', …)
const webrtc = createMockWebrtcService();webrtc.handleMessage('win-1', { type: 'webrtc.open', id: 'o1', request: { scope: { type: 'room', room: 'lab' } } }, console.log); Copy
const webrtc = createMockWebrtcService();webrtc.handleMessage('win-1', { type: 'webrtc.open', id: 'o1', request: { scope: { type: 'room', room: 'lab' } } }, console.log);
Create the mock NAP-WEBRTC service.