WebsocketMockRequest

class WebsocketMockRequest(val method: String, val path: String, val version: String, val headers: Map<String, String> = emptyMap()) : MockRequestBase

Constructors

Link copied to clipboard
constructor(method: String, path: String, version: String, headers: Map<String, String> = emptyMap())

Properties

Link copied to clipboard
open override val headers: Map<String, String>

The request headers

Link copied to clipboard
open override val method: String
Link copied to clipboard
open override val path: String
Link copied to clipboard
open override val version: String

Functions

Link copied to clipboard
suspend fun awaitClose(timeout: Duration = 1.seconds)
Link copied to clipboard
suspend fun awaitMessage(timeout: Duration = 1.seconds): WebSocketMessage
Link copied to clipboard
suspend fun awaitMessageOrClose(timeout: Duration = 1.seconds): Result<WebSocketMessage>