Move message classes to ferretirc.net.messages

This commit is contained in:
2026-08-12 13:26:44 +01:00
parent 5d7847ee89
commit fcac3d5431
4 changed files with 79 additions and 67 deletions
@@ -0,0 +1,12 @@
package com.shr4pnel.ferretirc.net.messages
import io.ktor.network.sockets.Socket
import kotlinx.coroutines.CoroutineScope
import kotlinx.coroutines.Job
import kotlinx.coroutines.channels.Channel
abstract class MessageIO(val socket: Socket, val scope: CoroutineScope) {
val incomingMessages = Channel<String>(Channel.BUFFERED)
val outgoingMessages = Channel<ClientMessage>(Channel.BUFFERED)
abstract fun start(): Job
}