Ignore sockjs heartbeats

This commit is contained in:
Daniil Fedotov 2016-09-01 18:07:54 +01:00
parent 6e93763d6b
commit d7cd45fdaf
1 changed files with 3 additions and 1 deletions

View File

@ -75,7 +75,9 @@ sjs_recv(WS) ->
{ok, stomp:unmarshal(StompFrame)};
<<"c", JsonArr/binary>> ->
{ok, CloseReason} = sockjs_json:decode(JsonArr),
{close, CloseReason}
{close, CloseReason};
<<"h">> ->
sjs_recv(WS)
end.
pubsub(Config) ->