
27 Sep
2011
27 Sep
'11
8:40 a.m.
On Mon, Sep 26, 2011 at 3:36 AM, Greg Weber
Hi yi, WAI is and will always be designed for HTTP. Websockets is a different protocol (even though it is normally initiated over HTTP). If there is a way that makes sense to put it websockets into WAI, it can definitely be considered. But I believe the current plan is to put Websocket support into Warp. Haskell code re-use will be achieved through this Websockets library. Does that seem reasonable to you?
Snap was planning on handling this by giving you an "ejector seat"
mechanism in which control completely leaves the HTTP stack and you
get a (readEnd, writeEnd) enumerator/iteratee pair to do whatever you
want with.
G
--
Gregory Collins