
main.websockets.CloseEvent.kt Maven / Gradle / Ivy
// Automatically generated - do not modify!
package websockets
import web.events.Event
import web.events.EventInit
external interface CloseEventInit : EventInit {
var code: Int?
var reason: String?
var wasClean: Boolean?
}
open external class CloseEvent(
type: String,
init: CloseEventInit = definedExternally,
) : Event {
/** Returns the WebSocket connection close code provided by the server. */
val code: Int
/** Returns the WebSocket connection close reason provided by the server. */
val reason: String
/** Returns true if the connection closed cleanly; false otherwise. */
val wasClean: Boolean
companion object
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy