hocuspocus-rs-ws 0.1.0

Async WebSocket server implementing the Hocuspocus collaborative editing protocol in Rust.
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
13
14
pub mod simple;

use crate::client_connection::DocConnectionConfig;
use anyhow::Result;
use async_trait::async_trait;

#[async_trait]
pub trait Authenticator: Send + Sync {
    async fn authenticate(
        &self,
        doc_id: &str,
        token: &str,
    ) -> Result<DocConnectionConfig>;
}