PhishingWebsocketWrapper

class PhishingWebsocketWrapper(userAgent: String, callback: suspend (DomainChange) -> Unit) : KordExKoinComponent

Class wrapping the Sinking Yachts phishing API websocket. Mostly for lifecycle control, since we may need to reconnect at times.

Constructors

Link copied to clipboard
constructor(userAgent: String, callback: suspend (DomainChange) -> Unit)

Functions

Link copied to clipboard
open override fun getKoin(): Koin
Link copied to clipboard
suspend fun start()

Connect the websocket, and start processing incoming data. This will also stop any current websocket connection.

Link copied to clipboard
fun stop()

If the websocket is connected, disconnect by killing its job.