Hello,
nobody else with this problem or know the solution?
On Sat, May 31, 2014 at 03:18:06AM +0200, Gregor Féng wrote:
> Hi all,
>
> I experiment with websocket controller and most worked so far. I can
> send messages between chicago boss and different browsers. So far, so
> good. What I'm missing yet is the »SessionId«, that is always
> »undefined«. I'm using version 0.8.12 and the source of the (very
> simple) websocket is as follow:
>
> ------------------------------
> -module(spw_msgs_websocket, [Req, SessionId]).
>
> -behaviour(boss_service_handler).
>
> -export([
> handle_broadcast/2,
> handle_close/4,
> handle_incoming/4,
> handle_join/3,
> init/0,
> terminate/2
> ]).
>
> init() ->
> io:format("-----init~n", []),
> {ok, []}.
>
> handle_join(_URL, _Pid, State) ->
> {noreply, State}.
>
> handle_close(_Reason, _URL, _Pid, State) ->
> {noreply, State}.
>
> handle_incoming(_URL, Pid, Message, State) ->
> Pid ! {text, ["Answer to: " ++ Message]},
> {noreply, State}.
>
> handle_broadcast(_Message, State) ->
> {noreply, State}.
>
> terminate(_Reason, _State) ->
> ok.
> ------------------------------
>
> In the boss configuration is cowboy set. What's wrong with my setup?
>
> Thanks people!
>
> --
> You received this message because you are subscribed to the Google Groups
> "ChicagoBoss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> Visit this group at http://groups.google.com/group/chicagoboss.
> To view this discussion on the web visit
> https://groups.google.com/d/msgid/chicagoboss/20140531011806.GA44434%40evilAtWork.net.
> For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups
"ChicagoBoss" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
Visit this group at http://groups.google.com/group/chicagoboss.
To view this discussion on the web visit
https://groups.google.com/d/msgid/chicagoboss/20140610174247.GB28331%40evilAtWork.net.
For more options, visit https://groups.google.com/d/optout.