cqhttp support forward websocket

This commit is contained in:
yanyongyu
2021-07-19 23:46:29 +08:00
parent 32787fdc1e
commit 04b3fda40c
5 changed files with 46 additions and 22 deletions

View File

@ -84,6 +84,7 @@ class Driver(abc.ABC):
* ``name: str``: 适配器名称,用于在连接时进行识别
* ``adapter: Type[Bot]``: 适配器 Class
* ``**kwargs``: 其他传递给适配器的参数
"""
if name in self._adapters:
logger.opt(
@ -195,7 +196,8 @@ class Driver(abc.ABC):
class ForwardDriver(Driver):
@abc.abstractmethod
def setup(self, adapter: str, request: "HTTPConnection") -> None:
def setup(self, adapter: str, self_id: str,
request: "HTTPConnection") -> None:
raise NotImplementedError