elixir-web / weber

[WiP] Web framework for Elixir inspired by Rails [#WeberMVC at freenode]
http://elixir-web.github.io/weber/
MIT License
372 stars 33 forks source link

How to bind sockjs and like this #163

Open 0xAX opened 10 years ago

0xAX commented 10 years ago

Hello All,

Got a question in IRC how to bind sockjs to the Weber.

I'm seeing two ways for doing this:

  1. Add sockjs-erlang as a standard _sj and config route as we doing with websockets.
  2. Use wrap for
cowboy:set_env(my_http_listener, dispatch, cowboy_router:compile(Dispatch)).

for updating current cowboy routing?

Any additional ideas/suggestions?

Links:

cc: @matheusca

matheusca commented 10 years ago

In the sockjs documention there are two options, such as you described, so I think haven't more options to do it

Enviado via iPhone

Em 26/01/2014, às 15:39, 0xAX notifications@github.com escreveu:

Hello All,

Got a question in IRC how to bind sockjs to the Weber.

I'm seeing two ways for doing this:

Add sockjs-erlang as a standard _sj and config route as we doing with websockets.

Use wrap for

cowboy:set_env(my_http_listener, dispatch, cowboy_router:compile(Dispatch)). for updating current cowboy routing?

Any additional ideas/suggestions?

Links:

socksj-erlang cc: @matheusca

— Reply to this email directly or view it on GitHub.

0xAX commented 10 years ago

In the sockjs documention there are two options, such as you described, so I think haven't more options to do it

So.. need to choose the best :)

matheusca commented 10 years ago

I don't know, think it's be better like cowboy's wrapper

Enviado via iPhone

Em 26/01/2014, às 16:09, 0xAX notifications@github.com escreveu:

In the sockjs documention there are two options, such as you described, so I think haven't more options to do it

So.. need to choose the best :)

— Reply to this email directly or view it on GitHub.