Just getting started with Phoenix (nice work!), but had trouble getting channels to work on 0.13.1; this example was useful but hadn't been updated since 0.11... so I figured I'd learn by updating the example.
I couldn't get it to work against 0.13.1, though -- phoenix.js is getting messages in response to the join, but the receive("ok"...) callback was never getting called -- so I updated it to master since master's had more API changes since 0.13.1. (When 0.14's done I can fix up the mix.exs reference to it, if you want to let this sit until them.)
(I grabbed phoenix.js from current phoenix master's priv/static/phoenix.js - that seems to be what phoenix.new does for a new project. Seems like mix ought to be able to grab deps/phoenix/priv/static/phoenix.js instead of each app having a copy that'll need to be manually updated like this -- tried briefly to make this happen but my mix-fu is still weak.)
Just getting started with Phoenix (nice work!), but had trouble getting channels to work on 0.13.1; this example was useful but hadn't been updated since 0.11... so I figured I'd learn by updating the example.
I couldn't get it to work against 0.13.1, though -- phoenix.js is getting messages in response to the join, but the
receive("ok"...)
callback was never getting called -- so I updated it to master since master's had more API changes since 0.13.1. (When 0.14's done I can fix up the mix.exs reference to it, if you want to let this sit until them.)(I grabbed phoenix.js from current phoenix master's priv/static/phoenix.js - that seems to be what phoenix.new does for a new project. Seems like mix ought to be able to grab
deps/phoenix/priv/static/phoenix.js
instead of each app having a copy that'll need to be manually updated like this -- tried briefly to make this happen but my mix-fu is still weak.)