A stomp client written in Erlang
Erlang
Switch branches/tags
Nothing to show
Pull request Compare This branch is 2 commits behind KodiEhf:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
doc
src
.gitignore
README.md
rebar.config

README.md

#A Stomp client written in Erlang

####Check the Wiki for more info or go straight to the the API docs.

##Usage sample:

%Create a message handling function:

Fun = fun(Msg) ->
io:format("Message ~p~n",[Msg])
end,

%Start the client and keep it's Pid:

{ok,Pid} = stomp_client:start("localhost",61613,"","",Fun),

%subscribe to a topic or a queue:

stomp_client:subscribe_topic("TestTopic",[],Pid).

%send a message to the TestTopic:

stomp_client:send_topic("TestTopic","This is a test message",[],Pid).

You should now get a printout on the console every time a message arrives on the topic you've subscribed to.