Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

#8 The 'm' frame is now illegal. Always use 'a' instead.

  • Loading branch information...
commit 9ee84e58a8abfcdb04a00a9043ee9819c7dfd0df 1 parent 68cfa5e
@majek majek authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/sockjs_ws.erl
View
4 src/sockjs_ws.erl
@@ -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)])]},
Please sign in to comment.
Something went wrong with that request. Please try again.