For a high-performance websocket server, ideally I want to reorient Iron to listen websockets instead of http(s).
Is it possible to use rust-websocket with iron, or does it not make sense to use both together?
If it is possible, how can I realize it?
It sound like you want to swap out Hyper inside of Iron for rust-websocket. This is likely to be difficult, if it is even possible at all. Iron is heavily integrated with Hyper, and the entire design is built around working over HTTP(S). If it's really something you want to do, it may be worthwhile to reach out to the Iron developers to see about the possibility of allowing the communication interface to be swappable, but I don't know how likely it is that they would be receptive to the idea.