Permalink
Browse files

improves docs on the message handler Fun

  • Loading branch information...
1 parent fa4cc57 commit 3cf0a4587cb0a6b04779a96d7172b713bef30cdb @videlalvaro committed May 16, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 README.md
View
@@ -58,7 +58,7 @@ This plugin has two parameters that affect its behavior:
`misultin_port`: The port Misultin should listen to. Default value is `8080`.
-`message_handler`: an Erlang tuple with two atoms like {module, function}. Default value is `{rabbit_websockets_util, basic_handler}`.
+`message_handler`: an Erlang tuple with two atoms like {module, function}. Default value is `{rabbit_websockets_util, basic_handler}`. The message handler will be used to decode the message. It should return the message in such a way that is suitable to send over websockets. For example, if you are sending JSON messages and you are only interested in one field of the JSON object, then you can provide a handler that will decode the JSON object, extract the field, and return that value.
You can modify such settings on your `rabbitmq.config` file like this:

0 comments on commit 3cf0a45

Please sign in to comment.