Coverage for src/aiocoap/util/pyodide_websockets/asyncio/server.py: 0%
9 statements
« prev ^ index » next coverage.py v7.7.0, created at 2025-03-20 17:26 +0000
« prev ^ index » next coverage.py v7.7.0, created at 2025-03-20 17:26 +0000
1# SPDX-FileCopyrightText: Christian Amsüss and the aiocoap contributors
2#
3# SPDX-License-Identifier: MIT
5from .connection import Connection
8class ServerConnection(Connection):
9 def __init__(self, *args, **kwargs):
10 raise RuntimeError("Web sockets in web browsers can not be used as servers")
13class Server:
14 def __init__(self, *args, **kwargs):
15 raise RuntimeError("Web sockets in web browsers can not be used as servers")
18async def serve(*args, **kwargs) -> Server:
19 return Server()