Added STOMP as an alias for CONNECT

This commit is contained in:
Rob Harrop 2011-01-11 14:12:58 +00:00
parent 162fd62b6d
commit 5c85681064
1 changed files with 3 additions and 0 deletions

View File

@ -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) ->