Coverage for nexios\websockets\__init__.py: 100%

9 statements  

« prev     ^ index     » next       coverage.py v7.8.0, created at 2025-05-21 20:31 +0100

1from .base import WebSocket, WebSocketDisconnect # type:ignore 

2from .channels import Channel, ChannelBox 

3from .consumers import WebSocketConsumer 

4import typing 

5 

6Scope = typing.MutableMapping[str, typing.Any] 

7Message = typing.MutableMapping[str, typing.Any] 

8 

9Receive = typing.Callable[[], typing.Awaitable[Message]] 

10Send = typing.Callable[[Message], typing.Awaitable[None]] 

11 

12 

13__all__ = [ 

14 "WebSocket", 

15 "Channel", 

16 "ChannelBox", 

17 "WebSocketConsumer", 

18 "WebSocketDisconnect", 

19]