Skip to first unread message


Mar 13, 2013, 5:09:58 PM3/13/13
to moch...@googlegroups.com
Hello everyone,

How come the attempts to add websockets to Mochiweb have stalled?

I notice that Zotonic which runs on top of Mochiweb is using Cowboy's websocket code to provide the functionality, and then RJ was trying to add websockets https://github.com/mochi/mochiweb/issues/26 but that didn't happen.

Dave Bryson's code doesn't look that complicated thou https://github.com/davebryson/erlang_websocket/blob/master/src/mochiweb_websocket.erl Is that code a good possible starting point for a websocket implementation? Or does it make sense to use Cowboy's websocket code or Misultin's websocket code and integrate it with Mochiweb?



Bob Ippolito

Mar 13, 2013, 5:33:44 PM3/13/13
to moch...@googlegroups.com
It mostly comes down to interest, none of the primary contributors to mochiweb have had a need for websockets... especially years ago, when the standard was still evolving. There hasn't been a pull request to implement websockets with much test coverage. Why bother when there are already decent implementations out there elsewhere?

I've used the cowboy websockets implementation without any issues (but the HTTP was also using cowboy), so I'd suggest giving that a try. You may also want to take a look at using cowboy for HTTP as well, it has a cleaner and API and does fewer conversions between binary and string. mochiweb is stuck with the way it currently works for compatibility/legacy reasons and is unlikely to evolve very much in the future.

You received this message because you are subscribed to the Google Groups "MochiWeb" group.
To unsubscribe from this group and stop receiving emails from it, send an email to mochiweb+u...@googlegroups.com.
To post to this group, send email to moch...@googlegroups.com.
Visit this group at http://groups.google.com/group/mochiweb?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.

Reply all
Reply to author
0 new messages