From c3957e2519d0986a21da80f6cda2e88a705acb3b Mon Sep 17 00:00:00 2001 From: Aditya Kulkarni Date: Wed, 13 Feb 2019 10:33:50 -0800 Subject: [PATCH] Return pings --- src/main/kotlin/com/zecqtwallet/wormhole/Service.kt | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/main/kotlin/com/zecqtwallet/wormhole/Service.kt b/src/main/kotlin/com/zecqtwallet/wormhole/Service.kt index 8498886..363cfe8 100644 --- a/src/main/kotlin/com/zecqtwallet/wormhole/Service.kt +++ b/src/main/kotlin/com/zecqtwallet/wormhole/Service.kt @@ -46,6 +46,8 @@ fun main(args : Array) { if (j.contains("ping")) { // Ignore, this is a keep-alive ping LOG.info("Ping ${usermap[session]}") + // Just send the ping back + session.send(message) return@onMessage }