phoenixframework/phoenix — pull request #364 by dokie (2014-09-24 20:29:11+00:00)
Title: Internal Constructor compatible with Browserify

When using Browserify via gulp to bundle up the Phoenix socket.js there is no reference to Phoenix.Channel as the AMD/Require support exposes the constructor as exports.Channel. Without this change when loaded into the browser there was an error that Phoenix is undefined.