Skip to content

nisbus/erlang-stomp-client

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Build Status
#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.

About

A stomp client written in Erlang

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Erlang 100.0%