Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ val hexagonVersion = "2.8.0"
val gradleScripts = "https://raw.githubusercontent.com/hexagonkt/hexagon/$hexagonVersion/gradle"

ext.set("options", "-Xmx48m")
ext.set("applicationClass", "org.example.ApplicationKt")
ext.set("applicationClass", "com.hexagonkt.ws_chat.ChatPage")

apply(from = "$gradleScripts/kotlin.gradle")
apply(from = "$gradleScripts/application.gradle")
Expand All @@ -19,7 +19,7 @@ apply(from = "$gradleScripts/native.gradle")
defaultTasks("build")

version="1.0.0"
group="org.hexagon.ws-chat"
group="com.hexagonkt.ws_chat"
description="Service's description"

dependencies {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package org.example
package com.hexagonkt.ws_chat

import com.google.gson.Gson
import com.hexagonkt.core.ALL_INTERFACES
Expand All @@ -18,7 +18,7 @@ internal lateinit var server: HttpServer
internal val clientSessions = hashMapOf<WsSession, String>()

internal fun main() {
LoggingManager.defaultLoggerName = "org.hexagon.ws-chat"
LoggingManager.defaultLoggerName = "com.hexagonkt.ws_chat"
var userNumber = 1

server = serve(settings) {
Expand Down Expand Up @@ -55,8 +55,8 @@ internal fun main() {
}
}

val gson = Gson()
fun broadcastMsg(sender: String?, msg: String) {
internal val gson = Gson()
internal fun broadcastMsg(sender: String?, msg: String) {
val message = "$sender: $msg"
val data = mapOf(
"message" to message,
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.