Coverage for aiocoap / util / pyodide_websockets / asyncio / server.py: 67%
9 statements
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-10 10:42 +0000
« prev ^ index » next coverage.py v7.13.1, created at 2026-01-10 10:42 +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()