diff libervia/server/classes.py @ 1186:352865f4a268

server: added a generic way to have notification messages in pages
author Goffi <goffi@goffi.org>
date Sun, 26 May 2019 22:16:07 +0200
parents 7d6c0e5d5f34
children 987595a254b0
line wrap: on
line diff
--- a/libervia/server/classes.py	Sun May 26 22:14:23 2019 +0200
+++ b/libervia/server/classes.py	Sun May 26 22:16:07 2019 +0200
@@ -23,3 +23,4 @@
 from collections import namedtuple
 
 WebsocketMeta = namedtuple("WebsocketMeta", ("url", "token", "debug"))
+Notification = namedtuple("Notification", ("message", "level"))