Allow configurable ingress URI

This commit is contained in:
pandaninjas 2023-04-20 22:13:24 -04:00
parent be472b16a4
commit 82d7d802ff
Signed by: pandaninjas
GPG key ID: 0BD7553044D47763

View file

@ -42,7 +42,7 @@ data class DomainAssignedMessage(val DomainAssigned: String)
data class ChannelOpenMessage(val ChannelOpen: List<Any>)
data class ChannelClosedMessage(val ChannelClosed: Number)
class E4mcRelayHandler: WebSocketClient(URI("wss://ingress.e4mc.link")) {
class E4mcRelayHandler: WebSocketClient(URI(System.getProperty("vg.skye.e4mc_minecraft.ingress_uri", "wss://ingress.e4mc.link"))) {
private val gson = Gson()
private val childChannels = mutableMapOf<Int, LocalChannel>()
private val messageQueue = mutableMapOf<Int, ArrayBlockingQueue<ByteBuffer>>()