s2rs 0.6.15

An intuitive Rust -> Scratch API library
Documentation
1
2
3
4
5
6
7
8
9
10
11
12
#[cfg(feature = "web_socket")] use std::sync::Arc;
#[cfg(feature = "web_socket")] use crate::web_socket::WebSocket;
use super::Api;

impl Api {
    #[cfg(feature = "web_socket")]
    pub async fn project_cloud(&self, _id: u64) -> Result<Arc<WebSocket>, tokio_tungstenite::tungstenite::Error> {
        WebSocket::new(
            "wss://clouddata.scratch.mit.edu"
        ).await
    }
}