Continuing development

pull/292/head
morpheus65535 6 years ago
parent fd840d86c0
commit 4686e7da55

@ -1742,13 +1742,15 @@ def handle_websocket():
if not wsock: if not wsock:
abort(400, 'Expected WebSocket request.') abort(400, 'Expected WebSocket request.')
queueconfig.q4ws.empty()
while True: while True:
# try: try:
while not queueconfig.q4ws.empty(): while not queueconfig.q4ws.empty():
wsock.send(queueconfig.q4ws.get_nowait()) wsock.send(queueconfig.q4ws.get_nowait())
gevent.sleep(0) gevent.sleep(0)
# except WebSocketError: except WebSocketError:
# break break
import warnings import warnings
# Mute DeprecationWarning # Mute DeprecationWarning

@ -216,7 +216,13 @@
new Noty({ new Noty({
text: evt.data, text: evt.data,
timeout: 3000, timeout: 3000,
type: 'success', progressBar: false,
animation: {
open: null,
close: null
},
killer: true,
type: 'success',
layout: 'bottomRight', layout: 'bottomRight',
theme: 'semanticui' theme: 'semanticui'
}).show(); }).show();

Loading…
Cancel
Save