tinydancer-io / tinydancer

The First Light Client for the Solana Blockchain
https://docs.tinydancer.io
MIT License
131 stars 16 forks source link

Custom Websocket conversion in macro #25

Closed anoushk1234 closed 1 year ago

anoushk1234 commented 1 year ago
macro_rules! convert_to_websocket {
    ($test:expr) => {
        if $test.contains("https") {
            $test.replace("https://", "wss://")
        } else {
            String::from("ws://0.0.0.0:8900")
        }
    };
}

Need to support custom RPC here