From 3a6cc7389c5166a0c9580daf5d709a0dee85a996 Mon Sep 17 00:00:00 2001 From: Ryu juheon Date: Sun, 24 Apr 2022 19:32:13 +0900 Subject: [PATCH] feat: easier websocket interface annotation (#2438) --- sanic/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/sanic/__init__.py b/sanic/__init__.py index 2b7e779267..cf050fc615 100644 --- a/sanic/__init__.py +++ b/sanic/__init__.py @@ -4,6 +4,7 @@ from sanic.constants import HTTPMethod from sanic.request import Request from sanic.response import HTTPResponse, html, json, text +from sanic.server.websockets.impl import WebsocketImplProtocol as Websocket __all__ = ( @@ -13,6 +14,7 @@ "HTTPMethod", "HTTPResponse", "Request", + "Websocket", "html", "json", "text",