Skip to content

Commit

Permalink
Remove unused sockjs-client declarations
Browse files Browse the repository at this point in the history
  • Loading branch information
joffrey-bion committed Sep 22, 2024
1 parent 6f4a058 commit 4cc809e
Showing 1 changed file with 0 additions and 24 deletions.
24 changes: 0 additions & 24 deletions krossbow-websocket-sockjs/src/jsMain/kotlin/sockjs-client.kt
Original file line number Diff line number Diff line change
@@ -1,35 +1,11 @@
@file:Suppress("INTERFACE_WITH_SUPERCLASS")

import org.w3c.dom.WebSocket
import org.w3c.dom.events.Event

// both annotations, so it's accessible from UMD
@JsModule("sockjs-client")
@JsNonModule
external object SockJS {
@nativeInvoke
operator fun invoke(url: String, protocols: List<String> = definedExternally, options: Options = definedExternally): WebSocket
var prototype: WebSocket
var CONNECTING: String /* 0 */
var OPEN: String /* 1 */
var CLOSING: String /* 2 */
var CLOSED: String /* 3 */

interface BaseEvent : Event {
override var type: String
}

interface OpenEvent : BaseEvent

interface CloseEvent : BaseEvent {
var code: Number
var reason: String
var wasClean: Boolean
}

interface MessageEvent : BaseEvent {
var data: String
}

interface Options {
var server: String?
Expand Down

0 comments on commit 4cc809e

Please sign in to comment.