#[socketio_adapter]Expand description
Marks a struct as a Socket.IO adapter.
This macro should be used in combination with the #[on]
macro for handler implementation.
§Usage
ⓘ
#[socketio_adapter("/chat")]
struct ChatSocket;
impl ChatSocket {
#[on("connection")]
async fn on_connect(&self, socket: SocketRef) {
println!("Client connected");
}
}