Skip to content

Commit

Permalink
sockjs#8 The 'm' frame is now illegal. Always use 'a' instead.
Browse files Browse the repository at this point in the history
  • Loading branch information
majek committed Oct 11, 2011
1 parent 68cfa5e commit 9ee84e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/sockjs_ws.erl
Expand Up @@ -8,10 +8,10 @@
%% Where should framing happen? (Do we care?)

send(Data, {?MODULE, Ws, cowboy}) ->
Ws ! {send, ["m", sockjs_util:encode(Data)]};
Ws ! {send, ["a[", sockjs_util:encode(Data), "]"]};

send(Data, {?MODULE, Ws, misultin}) ->
Ws:send(["m", sockjs_util:encode(Data)]).
Ws:send(["a[", sockjs_util:encode(Data), "]"]).

close(Code, Reason, {?MODULE, Ws, cowboy}) ->
Ws ! {send, ["c", sockjs_util:encode([Code, list_to_binary(Reason)])]},
Expand Down

0 comments on commit 9ee84e5

Please sign in to comment.