Class

io.scalajs.dom.ws

CloseEvent

Related Doc: package ws

Permalink

class CloseEvent extends Object with Event

A CloseEvent is sent to clients using WebSockets when the connection is closed. This is delivered to the listener indicated by the WebSocket object's onclose attribute.

Annotations
@RawJSType() @native()
Linear Supertypes
Event, Object, Any, AnyRef, Any
Ordering
  1. Alphabetic
  2. By Inheritance
Inherited
  1. CloseEvent
  2. Event
  3. Object
  4. Any
  5. AnyRef
  6. Any
  1. Hide All
  2. Show All
Visibility
  1. Public
  2. All

Instance Constructors

  1. new CloseEvent()

    Permalink

Value Members

  1. final def !=(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  2. final def ##(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  3. final def ==(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  4. val AT_TARGET: Int

    Permalink

    The current event is in the target phase, i.e.

    The current event is in the target phase, i.e. it is being evaluated at the event target (2)

    Definition Classes
    Event
  5. val BUBBLING_PHASE: Int

    Permalink

    The current event phase is the bubbling phase (3)

    The current event phase is the bubbling phase (3)

    Definition Classes
    Event
  6. val CAPTURING_PHASE: Int

    Permalink

    The current event phase is the capture phase (1)

    The current event phase is the capture phase (1)

    Definition Classes
    Event
  7. final def asInstanceOf[T0]: T0

    Permalink
    Definition Classes
    Any
  8. def bubbles: Boolean

    Permalink

    Returns whether or not a specific event is a bubbling event

    Returns whether or not a specific event is a bubbling event

    Definition Classes
    Event
  9. def cancelable: Boolean

    Permalink

    Returns whether or not an event can have its default action prevented

    Returns whether or not an event can have its default action prevented

    Definition Classes
    Event
  10. def clone(): AnyRef

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  11. def code: Int

    Permalink

    Returns an unsigned short containing the close code send by the server.

    Returns an unsigned short containing the close code send by the server. The following values are permitted status codes.

  12. def currentTarget: Element

    Permalink

    Returns the element whose event listeners triggered the event

    Returns the element whose event listeners triggered the event

    Definition Classes
    Event
  13. def defaultPrevented: Boolean

    Permalink

    Returns whether or not the preventDefault() method was called for the event

    Returns whether or not the preventDefault() method was called for the event

    Definition Classes
    Event
  14. final def eq(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  15. def equals(arg0: Any): Boolean

    Permalink
    Definition Classes
    AnyRef → Any
  16. def eventPhase: String

    Permalink

    Returns which phase of the event flow is currently being evaluated

    Returns which phase of the event flow is currently being evaluated

    Definition Classes
    Event
  17. def finalize(): Unit

    Permalink
    Attributes
    protected[java.lang]
    Definition Classes
    AnyRef
    Annotations
    @throws( classOf[java.lang.Throwable] )
  18. final def getClass(): Class[_]

    Permalink
    Definition Classes
    AnyRef → Any
  19. def hasOwnProperty(v: String): Boolean

    Permalink
    Definition Classes
    Object
  20. def hashCode(): Int

    Permalink
    Definition Classes
    AnyRef → Any
  21. def initCloseEvent(): Unit

    Permalink

    Initializes the value of a CloseEvent created.

    Initializes the value of a CloseEvent created. If the event has already being dispatched, this method does nothing. Do not use this method anymore, use the CloseEvent() constructor instead.

  22. final def isInstanceOf[T0]: Boolean

    Permalink
    Definition Classes
    Any
  23. def isPrototypeOf(v: Object): Boolean

    Permalink
    Definition Classes
    Object
  24. def isTrusted: Boolean

    Permalink

    Returns whether or not an event is trusted

    Returns whether or not an event is trusted

    Definition Classes
    Event
  25. final def ne(arg0: AnyRef): Boolean

    Permalink
    Definition Classes
    AnyRef
  26. final def notify(): Unit

    Permalink
    Definition Classes
    AnyRef
  27. final def notifyAll(): Unit

    Permalink
    Definition Classes
    AnyRef
  28. def preventDefault(): Unit

    Permalink

    Cancels the event if it is cancelable, meaning that the default action that belongs to the event will not occur

    Cancels the event if it is cancelable, meaning that the default action that belongs to the event will not occur

    Definition Classes
    Event
  29. def propertyIsEnumerable(v: String): Boolean

    Permalink
    Definition Classes
    Object
  30. def reason: String

    Permalink

    Returns a DOMString indicating the reason the server closed the connection.

    Returns a DOMString indicating the reason the server closed the connection. This is specific to the particular server and sub-protocol.

  31. def stopImmediatePropagation(): Unit

    Permalink

    Prevents other listeners of the same event from being called

    Prevents other listeners of the same event from being called

    Definition Classes
    Event
  32. def stopPropagation(): Unit

    Permalink

    Prevents further propagation of an event during event flow

    Prevents further propagation of an event during event flow

    Definition Classes
    Event
  33. final def synchronized[T0](arg0: ⇒ T0): T0

    Permalink
    Definition Classes
    AnyRef
  34. def target: Element

    Permalink

    Returns the element that triggered the event

    Returns the element that triggered the event

    Definition Classes
    Event
  35. def timeStamp: Double

    Permalink

    Returns the time (in milliseconds relative to the epoch) at which the event was created

    Returns the time (in milliseconds relative to the epoch) at which the event was created

    Definition Classes
    Event
  36. def toLocaleString(): String

    Permalink
    Definition Classes
    Object
  37. def toString(): String

    Permalink
    Definition Classes
    AnyRef → Any
  38. def type: String

    Permalink

    Returns the name of the event

    Returns the name of the event

    Definition Classes
    Event
  39. def valueOf(): Any

    Permalink
    Definition Classes
    Object
  40. def view: Any

    Permalink

    Returns a reference to the Window object where the event occurred TODO is this really a reference to Window?

    Returns a reference to the Window object where the event occurred TODO is this really a reference to Window?

    Definition Classes
    Event
  41. final def wait(): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  42. final def wait(arg0: Long, arg1: Int): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  43. final def wait(arg0: Long): Unit

    Permalink
    Definition Classes
    AnyRef
    Annotations
    @throws( ... )
  44. def wasClean: Boolean

    Permalink

    Returns a Boolean that Indicates whether or not the connection was cleanly closed.

Inherited from Event

Inherited from Object

Inherited from Any

Inherited from AnyRef

Inherited from Any

Ungrouped