Sign in
webkit
/
WebKit
/
473b92ed852160eab7c2365a49eda22bbbc97909
/
.
/
LayoutTests
/
imported
/
w3c
/
web-platform-tests
/
eventsource
/
dedicated-worker
/
eventsource-onopen.js
blob: 72a1053263040b94653d9d2090b00c999c599c24 [
file
] [
log
] [
blame
]
try
{
var
source
=
new
EventSource
(
"../resources/message.py"
)
source
.
onopen
=
function
(
e
)
{
postMessage
([
true
,
source
.
readyState
,
'data'
in e
,
e
.
bubbles
,
e
.
cancelable
])
this
.
close
()
}
}
catch
(
e
)
{
postMessage
([
false
,
String
(
e
)])
}