Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Initial WebSockets implementation #82

Merged
merged 6 commits into from
Feb 16, 2025
Merged

Initial WebSockets implementation #82

merged 6 commits into from
Feb 16, 2025

Conversation

RomanEmreis
Copy link
Owner

  • Implemented HTTP/1 support
  • Unstable HTTP/2 support

Example

use volga::App;
use tracing_subscriber::prelude::*;

#[tokio::main]
async fn main() -> std::io::Result<()> {
    tracing_subscriber::registry()
        .with(tracing_subscriber::fmt::layer())
        .init();

    let mut app = App::new();

    app.map_message("/ws", |msg: String| async move {
        format!("received, {msg}", msg)
    });

    app.run().await
}

@RomanEmreis RomanEmreis added the enhancement New feature or request label Feb 16, 2025
@RomanEmreis RomanEmreis added this to the v1.0.0 milestone Feb 16, 2025
@RomanEmreis RomanEmreis self-assigned this Feb 16, 2025
@RomanEmreis RomanEmreis merged commit 28a6809 into main Feb 16, 2025
2 checks passed
@RomanEmreis RomanEmreis deleted the feature/ws branch February 16, 2025 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant