This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// Example of merging two async streams of different types into one | |
// Using websocket's example/async-server.rs as basis | |
use websocket::message::{Message, OwnedMessage}; | |
use websocket::r#async::Server; | |
use websocket::server::InvalidConnection; | |
use futures::{future, Future, Sink, Stream}; | |
use tokio::runtime::TaskExecutor; |