Giter Site home page Giter Site logo

shabbirhasan1 / rust-websocket-lite Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 1tgr/rust-websocket-lite

0.0 0.0 0.0 584 KB

A fast, low-overhead WebSocket client

License: MIT License

Shell 1.00% Python 0.24% Rust 96.00% HTML 0.22% Dockerfile 2.54%

rust-websocket-lite's Introduction

websocket-lite

CI

This repo contains three crates:

  • websocket-lite, a fast, low-overhead async WebSocket client
  • websocket-codec, a Tokio codec implementation of the WebSocket protocol
  • hyper-websocket-lite, bindings between a hyper server and websocket-codec

websocket-lite

Documentation | Source

This crate is optimised for receiving a high volume of messages over a long period. A key feature is that it makes no memory allocations once the connection is set up and the initial messages have been sent and received; it reuses a single pair of buffers, which are sized for the longest message seen so far.

This crate provides sync and async, tokio-based functionality. The ssl-native-tls, ssl-rustls-native-roots and ssl-rustls-webpki-roots feature flags provide the TLS functionality for wss://... servers.

This crate is fully conformant with the fuzzingserver module in the Autobahn test suite.

websocket-codec

Documentation | Source

This is a standalone crate that does not do any I/O directly. For a full WebSocket client, see the websocket-lite crate.

hyper-websocket-lite

Documentation | Source

Provides the server_upgrade function, which bridges a client's HTTP Upgrade request to the WebSocket protocol.

Additional command line tools

async/await

Version 0.3.2 and above use std futures and the async and await keywords. They are based on tokio 0.2 and futures 0.3 and the earliest supported compiler is 1.39. Version 0.5.0 and above use tokio 1.x and futures 0.3.

Version 0.2.4 is the release prior to async/await. It is based on tokio 0.1 and futures 0.1.

rust-websocket-lite's People

Contributors

1tgr avatar dependabot-preview[bot] avatar dependabot[bot] avatar hyyking avatar gelbpunkt avatar bschwind avatar mcseemk avatar julihoh avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.