Skip to content

Commit

Permalink
Update web code
Browse files Browse the repository at this point in the history
  • Loading branch information
ismartcoding committed Mar 6, 2024
1 parent c622c7f commit b144dde
Show file tree
Hide file tree
Showing 78 changed files with 82 additions and 79 deletions.
4 changes: 2 additions & 2 deletions app/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,9 +37,9 @@ android {
else -> 0
}

val vCode = 250
val vCode = 253
versionCode = vCode - singleAbiNum
versionName = "1.2.39"
versionName = "1.2.40"

ndk {
//noinspection ChromeOsAbiSupport
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,16 @@ package com.ismartcoding.plain.web.websocket
import com.ismartcoding.lib.helpers.CryptoHelper
import com.ismartcoding.lib.helpers.JsonHelper
import com.ismartcoding.lib.logcat.LogCat
import com.ismartcoding.plain.BuildConfig
import com.ismartcoding.plain.web.HttpServerManager
import io.ktor.websocket.*

object WebSocketHelper {
suspend fun sendEventAsync(event: WebSocketEvent) {
val json = JsonHelper.jsonEncode(event)
LogCat.d("sendEventAsync: $json")
if (BuildConfig.DEBUG) {
LogCat.d("sendEventAsync: $json")
}
HttpServerManager.wsSessions.toList().forEach {
if (event.encrypted) {
val token = HttpServerManager.tokenCache[it.clientId]
Expand Down

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit b144dde

Please sign in to comment.