aboutsummaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/src')
-rw-r--r--server/src/Thermoprint/Server/Push.hs1
1 files changed, 1 insertions, 0 deletions
diff --git a/server/src/Thermoprint/Server/Push.hs b/server/src/Thermoprint/Server/Push.hs
index b2eca6b..07b81fb 100644
--- a/server/src/Thermoprint/Server/Push.hs
+++ b/server/src/Thermoprint/Server/Push.hs
@@ -40,6 +40,7 @@ protocolSpec = CBS.pack $ "thermoprint-server.notification." ++ showVersion vers
40handleClient :: TChan Notification -> Connection -> IO () 40handleClient :: TChan Notification -> Connection -> IO ()
41handleClient chan conn = do 41handleClient chan conn = do
42 cChan <- atomically $ dupTChan chan 42 cChan <- atomically $ dupTChan chan
43 forkPingThread conn 10
43 forever . void $ atomically (readTChan cChan) >>= sendTextData conn . packNotification 44 forever . void $ atomically (readTChan cChan) >>= sendTextData conn . packNotification
44 45
45packNotification :: Notification -> Text 46packNotification :: Notification -> Text