If rtmpUrl is specified when the stream is created, and the push fails (e.g., if the RTMP server is unavailable), then the WebRTC publishing also fails.
Please verify that the server rtmpUrl and stream key are valid, and streaming not from the WCS is working. With the rtmpUrl from the example...