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

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 ---

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

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

2020-01-12 Thread Dominik Pantůček
Sigh... I forgot to reply to the list... Here we go: I want a single HTTP server like serve/servlet (or similar) that handles all requests by the standard dispatcher/c logic - ideally using dispatch/servlet with dispatch-case to specify the mapping. And for one specific URL path "/sockjs-node", I

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

2020-01-11 Thread Eli Barzilay
On Fri, Jan 10, 2020 at 9:18 PM Jay McCarthy wrote: > > I don't completely understand what you want to do. Is there a reason > you can't use the WebSocket implementation --- > https://docs.racket-lang.org/rfc6455/index.html --- and then use > normal inter-Racket communication like channels and

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

2020-01-10 Thread Jay McCarthy
I don't completely understand what you want to do. Is there a reason you can't use the WebSocket implementation --- https://docs.racket-lang.org/rfc6455/index.html --- and then use normal inter-Racket communication like channels and stuff to work with the rest of your Web application? Jay -- Jay

[racket-users] Proxying websockets via web-server

2020-01-09 Thread Dominik Pantůček
Hello everyone, I am working on an application that uses React.js[1] for front-end and Racket as HTTP back-end server. For production builds, the Javascript part is compiled using "npm build" which generates a directory full of HTML and Javascript files which are then included in the Racket