Skip to main content

golem_websocket/
lib.rs

1#[allow(unsafe_op_in_unsafe_fn)]
2mod bindings {
3    wit_bindgen::generate!({
4        world: "golem-websocket",
5        path: "wit",
6        generate_all,
7        pub_export_macro: true,
8        default_bindings_module: "crate::bindings",
9        with: {
10            "wasi:io/poll@0.2.3": wasip2::io::poll,
11        },
12    });
13}
14
15pub use bindings::golem::websocket::client::{CloseInfo, Error, Message, WebsocketConnection};