Make the message sending non blocking.

This commit is contained in:
poljar (Damir Jelić) 2018-01-31 13:55:55 +01:00
parent d83c25e709
commit 484d91b166
4 changed files with 98 additions and 43 deletions

View file

@ -32,7 +32,7 @@ from matrix import colors
from matrix.utf import utf8_decode
from matrix.http import HttpResponse
from matrix.api import MatrixMessage, MessageType, matrix_login
from matrix.socket import disconnect, send_or_queue, send, connect
from matrix.socket import disconnect, send_or_queue, send, connect, send_cb
from matrix.messages import handle_http_response
# Weechat searches for the registered callbacks in the scope of the main script