onmessage

var onmessage: (MessageEvent) -> dynamic?(source)

Since Kotlin

1.1