my kotlin fu is not that good - how could i Create...
# javascript
d
my kotlin fu is not that good - how could i Create an interface that implements onmessage and assign it to an instance of MessagePort?
t
Copy code
val messagePort:MessagePort = ...
messagePort.onmessage = { event -> println(event) }
d
Will give this a try - thank you so much!