Re: [dev-servo] How to shut down a WebSocket server

2016-09-12 Thread Michael Howell
You could always have some random-generated-at-startup "shutdown token" that you send through the WebSocket server itself, triggering it to break out of the loop. On Mon, Sep 12, 2016 at 10:33 AM Sean McArthur wrote: > > > > This may be a silly question, but why doesn't hyper come with > > WebSo

Re: [dev-servo] How to shut down a WebSocket server

2016-09-12 Thread Sean McArthur
> > This may be a silly question, but why doesn't hyper come with > WebSockets support out of the box? It seems like "part of" HTTP to > some extent. > Sorry this is offtopic from the subject, but just wanted to address the question: You won't find websockets in hyper for the same reason you won'

Re: [dev-servo] How to shut down a WebSocket server

2016-09-12 Thread Dirkjan Ochtman
On Mon, Sep 12, 2016 at 1:45 PM, Eddy Bruel wrote: > 3. I found another websocket library for Rust, called "ws". Unlike > rust-websocket, ws seems to have a proper shutdown story (one can call a > shutdown() method on a Sender, which can be cloned between threads). It > also seems to be a bit more