Broadcast Channel API Support?

Having problems with building or using CEF's C/C++ APIs? This forum is here to help. Please do not post bug reports or feature requests here.

Broadcast Channel API Support?

Postby ShenQing » Tue May 11, 2021 7:20 am

Hi, Does cef3 support Broadcast Channel API? If support how can i implement it. I write two simple test html,one send message, the other receive message. In chrome it runs OK,but in cef3 it does not take effect. Thank you for reply!

1.html part:
<script type="text/javascript">
var bc = new BroadcastChannel('test_channel');
</script>
var txtMsg = document.getElementById("txtMsg");
bc.postMessage(txtMsg.value);

2.html part:

<script type="text/javascript">
var bc = new BroadcastChannel('test_channel');
bc.onmessage = function (ev) {
var txtMsg = document.getElementById("txtMsg");
txtMsg.value=ev.data;
}
</script>
ShenQing
Newbie
 
Posts: 4
Joined: Tue May 11, 2021 7:04 am

Re: Broadcast Channel API Support?

Postby magreenblatt » Tue May 11, 2021 1:16 pm

What OS and CEF version are you testing?
magreenblatt
Site Admin
 
Posts: 12382
Joined: Fri May 29, 2009 6:57 pm

Re: Broadcast Channel API Support?

Postby ShenQing » Tue May 11, 2021 8:47 pm

magreenblatt wrote:What OS and CEF version are you testing?


Hi,Thank you for reply, OS: Windows 10 CEF Version: 87.0.4280.66
ShenQing
Newbie
 
Posts: 4
Joined: Tue May 11, 2021 7:04 am

Re: Broadcast Channel API Support?

Postby ShenQing » Fri May 14, 2021 3:28 am

can anyone help me?
ShenQing
Newbie
 
Posts: 4
Joined: Tue May 11, 2021 7:04 am


Return to Support Forum

Who is online

Users browsing this forum: Google [Bot] and 40 guests