mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
95559c4277
This patch adds a basic initial implementation of these API's. Since LibWeb currently doesn't support workers, this implementation of messaging doesn't bother with serializing and deserializing messages.
7 lines
200 B
HTML
7 lines
200 B
HTML
<script>
|
|
var channel = new MessageChannel();
|
|
channel.port2.onmessage = function(event) {
|
|
console.log("Port2 received '" + event.data + "'");
|
|
}
|
|
channel.port1.postMessage("HELLO FRIEND");
|
|
</script>
|