Re: [racket-users] Proxying websockets via web-server

2020-01-14 Thread Eli Barzilay
On Tue, Jan 14, 2020 at 8:09 PM Jay McCarthy wrote: > > As far as examples, there are some in the github repository --- > https://github.com/tonyg/racket-rfc6455/tree/master/net/rfc6455/examples Yeah, I saw them, but they're all examples of just starting a websocket server. What's missing (and i

Re: [racket-users] Proxying websockets via web-server

2020-01-14 Thread Jay McCarthy
Hi Dominik, The cited package is definitely what you want, but you'll have to crack open the source code a little bit to access the underlying pieces. It currently uses all of the existing `web-server` libraries and sets up a dispatcher chain for Websockets. You can see the entry point here --- h

Re: [racket-users] Proxying websockets via web-server

2020-01-14 Thread Jay McCarthy
Thanks for noticing that problem with the format string, Eli. As far as examples, there are some in the github repository --- https://github.com/tonyg/racket-rfc6455/tree/master/net/rfc6455/examples -- Jay McCarthy Associate Professor @ CS @ UMass Lowell http://jeapostrophe.github.io Vincit qui s

Re: [racket-users] Surprising behavior in The Printer

2020-01-14 Thread Matthew Flatt
The short answer is that you're right: creating new values at custom-print time creates trouble for graph detection and `print` quoting. Those operations perform a pass to make decisions about graphs and quoting based on `eq?` identity, and then they make another pass to actually print. I'll update