EventSource

@native @JSGlobal @JSType
object EventSource extends Object
Companion:
class
class Object
trait Any
class Object
trait Matchable
class Any

Value members

Inherited methods

def hasOwnProperty(v: String): Boolean
Inherited from:
Object
def isPrototypeOf(v: Object): Boolean
Inherited from:
Object
def propertyIsEnumerable(v: String): Boolean
Inherited from:
Object
def toLocaleString(): String
Inherited from:
Object
def valueOf(): Any
Inherited from:
Object

Concrete fields

val CLOSED: Int

The connection is not open, and the user agent is not trying to reconnect. Either there was a fatal error or the close() method was invoked. W3C 2012

The connection is not open, and the user agent is not trying to reconnect. Either there was a fatal error or the close() method was invoked. W3C 2012

val CONNECTING: Int

The connection has not yet been established, or it was closed and the user agent is reconnecting. W3C 2012

The connection has not yet been established, or it was closed and the user agent is reconnecting. W3C 2012

val OPEN: Int

The user agent has an open connection and is dispatching events as it receives them. W3C 2012

The user agent has an open connection and is dispatching events as it receives them. W3C 2012