From 36e00bb530c3883e22d9e7ee3350dfff679944d1 Mon Sep 17 00:00:00 2001 From: Martin Weinelt Date: Sun, 20 Jun 2021 21:03:34 +0200 Subject: [PATCH] Fix compatiblity with websockets>=9.0 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit > The client, server, protocol, and auth modules were moved from the websockets package to websockets.legacy sub-package, as part of an upcoming refactoring. Despite the name, they’re still fully supported. The refactoring should be a transparent upgrade for most uses when it’s available. The legacy implementation will be preserved according to the backwards-compatibility policy. https://websockets.readthedocs.io/en/stable/changelog.html#id5 Fixes: #239 --- hbmqtt/adapters.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hbmqtt/adapters.py b/hbmqtt/adapters.py index 496ad70..a9a7368 100644 --- a/hbmqtt/adapters.py +++ b/hbmqtt/adapters.py @@ -3,7 +3,7 @@ # See the file license.txt for copying permission. import asyncio import io -from websockets.protocol import WebSocketCommonProtocol +from websockets.legacy.protocol import WebSocketCommonProtocol from websockets.exceptions import ConnectionClosed from asyncio import StreamReader, StreamWriter import logging