1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
use std::sync::mpsc::Sender;

pub use {
    handler::WsRpcHandler,
    io::{
        Handler, IOHandlers,
    },
    protocol::Protocol,
};

use crate::message::Request;
use crate::wsocket::Instruct as WsInstruct;

mod io;

mod handler;

mod protocol;

pub enum Instruct {
    RPCRequest(Request, Sender<WsInstruct>),
    Exit,
}