Hacker News new | ask | show | jobs
by ixmatus 4406 days ago
So, it's a web framework that receives route requests and sends responses over a WebSocket / Comet connection?

I've had a similar idea for something in Haskell and it's cool to see someone doing this.

2 comments

It's actually a fully-featured framework that can be set up in whatever way you like. The realtime part is special because it's one of very few web frameworks that have integrated WebSockets from the very start in the core.
Checkout http://www.chicagoboss.org/about.htm Written in Erlang
Yeah I'm aware of Chicago Boss and have used it, but like most "frameworks" websockets are bolted on and you have to write special handlers for them.

I have yet to see frameworks offer routing coming in from the websocket connection itself because it also requires non-standard javascript to send the route requests through a parent websocket connection.

Which is why I was thinking that it's the way this framework was designed.

Yeah, this is a common problem.

From a previous post from someone else on HN, I began reading about N20, which is focused on Websockets as its first class transport. I am reading the docs because this is one of its many interesting features.

https://github.com/5HT/n2o