Coverage Summary for Class: SocketUrlUtilKt (dev.skymansandy.wiretap.plugin.ws.util)
| Class | Class, % | Method, % | Branch, % | Line, % | Instruction, % |
|---|---|---|---|---|---|
| SocketUrlUtilKt | 100% (1/1) | 100% (1/1) | 100% (2/2) | 100% (13/13) |
/*
* Copyright (c) 2026 skymansandy. All rights reserved.
*/
package dev.skymansandy.wiretap.plugin.ws.util
internal fun String.toWebSocketUrl(): String =
replaceFirst("http://", "ws://")
.replaceFirst("https://", "wss://")