Skip to content

Commit 2c7f088

Browse files
author
Robert Winkler
committed
Increase WebSocket timeout and refactored code into a ThingToFunctionsMapper
1 parent 129cce2 commit 2c7f088

File tree

6 files changed

+402
-349
lines changed

6 files changed

+402
-349
lines changed

kotlin-wot-binding-websocket/src/main/kotlin/websocket/WebSocketProtocolClient.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -238,7 +238,7 @@ class WebSocketProtocolClient(
238238
}
239239
}
240240

241-
private suspend fun requestAndReply(form: WoTForm, message: WoTMessage, timeoutMillis: Long = 5000L): Content {
241+
private suspend fun requestAndReply(form: WoTForm, message: WoTMessage, timeoutMillis: Long = 10000L): Content {
242242
val session = getOrCreateSession(form.href)
243243
val deferred = CompletableDeferred<Content>()
244244

0 commit comments

Comments
 (0)