MessageNetworkHandler

class MessageNetworkHandler(httpClient: OkHttpClient, localVirtualAddr: InetAddress, val di: DI) : DIAware

Handles sending and receiving chat messages over the network.

Constructors

Link copied to clipboard
constructor(httpClient: OkHttpClient, localVirtualAddr: InetAddress, di: DI)

Types

Link copied to clipboard
object Companion

Properties

Link copied to clipboard
open override val di: DI

The Kodein DI container instance for retrieving dependencies.

Link copied to clipboard
open val diContext: DIContext<*>
Link copied to clipboard
open val diTrigger: DITrigger?

Functions

Link copied to clipboard
fun sendChatMessage(address: InetAddress, time: Long, message: String, file: URI?)

Sends a chat message to a remote device over HTTP.