Metadata-Version: 2.4
Name: swarmauri_transport_websocket
Version: 0.1.0.dev4
Summary: Synchronous and asynchronous WebSocket client transport for Swarmauri.
License: Copyright 2024 Jacob Stewart
         
         Licensed under the Apache License, Version 2.0 (the "License");
         you may not use this file except in compliance with the License.
         You may obtain a copy of the License at
         
             http://www.apache.org/licenses/LICENSE-2.0
         
         Unless required by applicable law or agreed to in writing, software
         distributed under the License is distributed on an "AS IS" BASIS,
         WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
         See the License for the specific language governing permissions and
         limitations under the License.
License-File: LICENSE
Keywords: swarmauri,websocket,realtime,bidirectional,async
Author: Jacob Stewart
Author-email: jacob@swarmauri.com
Requires-Python: >=3.10,<3.13
Classifier: Development Status :: 1 - Planning
Classifier: License :: OSI Approved :: Apache Software License
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Requires-Dist: swarmauri_base
Requires-Dist: swarmauri_core
Requires-Dist: websockets (>=14)
Description-Content-Type: text/markdown

![Swarmauri](https://github.com/swarmauri/swarmauri-sdk/blob/3d4d1cfa949399d7019ae9d8f296afba773dfb7f/assets/swarmauri.brand.theme.svg)

[![PyPI version](https://img.shields.io/pypi/v/swarmauri_transport_websocket.svg)](https://pypi.org/project/swarmauri_transport_websocket/) [![Python](https://img.shields.io/pypi/pyversions/swarmauri_transport_websocket.svg)](https://pypi.org/project/swarmauri_transport_websocket/) [![License](https://img.shields.io/badge/license-Apache--2.0-blue)](LICENSE) [![Downloads](https://static.pepy.tech/badge/swarmauri_transport_websocket)](https://pepy.tech/project/swarmauri_transport_websocket) [![Hits](https://hits.sh/github.com/swarmauri/swarmauri-sdk.svg)](https://hits.sh/github.com/swarmauri/swarmauri-sdk/)

# swarmauri_transport_websocket

## Features

- Separate synchronous and asynchronous connection paths.
- Bidirectional text and binary messages.
- Context-independent ping, receive iteration, and deterministic close.

## Installation

```bash
uv add swarmauri_transport_websocket
pip install swarmauri_transport_websocket
```

## Usage

Create a `WebSocketClient`, call `connect` or `aconnect`, and use the matching send/receive methods. This package does not claim logical-channel multiplexing.

