Added STOMP as an alias for CONNECT
This commit is contained in:
parent
162fd62b6d
commit
5c85681064
|
|
@ -76,6 +76,9 @@ init([Sock, StartHeartbeatFun]) ->
|
|||
terminate(_Reason, State) ->
|
||||
shutdown_channel_and_connection(State).
|
||||
|
||||
handle_cast({"STOMP", Frame}, State) ->
|
||||
handle_cast({"CONNECT", Frame}, State);
|
||||
|
||||
handle_cast({"CONNECT", Frame}, State = #state{channel = none}) ->
|
||||
process_request(
|
||||
fun(StateN) ->
|
||||
|
|
|
|||
Loading…
Reference in New Issue