We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent cc83a2c commit 1bb34f4Copy full SHA for 1bb34f4
websocket.py
@@ -206,7 +206,7 @@ def send_text(self, message):
206
if not message:
207
print("Can\'t send message, message is not valid UTF-8")
208
return False
209
- elif isinstance(message, str):
+ elif isinstance(message, str) or isinstance(message, unicode):
210
pass
211
else:
212
print('Can\'t send message, message has to be a string or bytes. Given type is %s' % type(message))
0 commit comments