All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.scalajs.dom.event.ServerSentEvents.scala Maven / Gradle / Ivy

There is a newer version: 0.4.2
Show newest version
package io.scalajs.dom.event

import scala.scalajs.js

/**
  * Server-Sent Event
  * @author [email protected]
  */
@js.native
trait ServerSentEvents extends js.Object {

  /**
    * The event occurs when an error occurs with the event source
    */
  def onerror(callback: js.Function): Unit = js.native

  /**
    * The event occurs when a message is received through the event source
    */
  def onmessage(callback: js.Function): Unit = js.native

  /**
    * The event occurs when a connection with the event source is opened
    */
  def onopen(callback: js.Function): Unit = js.native

}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy