Skip to content

Commit 732a6c7

Browse files
juseong-parkbjhham
authored andcommitted
fix: Update WebSocket example to use kotlin.time
1 parent ab79540 commit 732a6c7

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

plugins/server/io.ktor/ktor-websockets/3.0/documentation.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ Optionally, you can configure various `WebSockets` options:
1313

1414
```kotlin
1515
install(WebSockets) {
16-
pingPeriod = Duration.ofSeconds(15)
17-
timeout = Duration.ofSeconds(15)
16+
pingPeriod = 15.seconds
17+
timeout = 15.seconds
1818
maxFrameSize = Long.MAX_VALUE
1919
masking = false
2020
}

0 commit comments

Comments
 (0)