`window.onload` and `eventSource.onmessage` have t...
# javascript
s
window.onload
and
eventSource.onmessage
have the same `((Event) -> dynamic)?`declaration, so I don't understand why I can use
window.onload
without a problem and not
eventSource.onmessage
.
b
please file an issue
s
Ok I will, it seems I can use
eventSource.addEventListener("onmessage", onMessage)
as a workaround
It seems the workaround does not work as described in the issue.
b
@sdeleuze try to use “message” instead of “onmessage”
s
Thanks it works 🙂