```class BotAuthTest : StringSpec() { val vert...
# vertx
a
Copy code
class BotAuthTest : StringSpec() {
    val vertx = Vertx.vertx()
    val client = vertx.createHttpClient()

    init {
        "connections with no auth token are denied" {
            shouldThrow<Exception> {
                client.websocket("/ws/bot",
                        { websocket -> println("Connected!") },
                        { error ->
                            println("error!")
                            throw error
                        }
                )
            }
        }
    }
}