Skip to content
Hydrometeor is a long-polling webserver based on a pubsub model, written in Erlang
Erlang JavaScript Shell
Pull request Compare This branch is 18 commits behind jalada:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Failed to load latest commit information.



There's not a lot here yet. But if you want instructions:


  1. Install the latest version of Erlang.

  2. Get the repository (look up how to use Git?)

  3. run make in this directory. Make sure everything looks ok

  4. Adjust hm_rel-1.rel to correspond with your Erlang versions. Whether you make changes or not run erl -pa ./ebin then on the Erlang command line run systools:make_script("hm_rel-1", [local]).. Then quit the Erlang shell. This updates the boot script to correspond with your versions. I'm probably going to remove this step once I understand more about Erlang releases etc.

  5. Make sure is executable: chmod +x

  6. ./

  7. Have fun! You might need to look in the code to know what to do.


At the moment you can use the Erlang shell you are dumped in to send messages, like: hm_server:send("testchannel", <<"Hello there!">>).

Alternatively, you can send HTTP POST data to the server: curl -d "channel=testchannel&message=testmessage" http://localhost:9002/hm1backend/admin/send

Before sending that, in another terminal run a curl command ready to receive it: curl "http://localhost:9002/hm1backend/subscribe?channel=testchannel"

Messages are sent in a format of id,message for the moment. The id can be used with a since parameter. So for example, send another message: hm_server:send("testchannel", <<"Hello again!">>).

Now run the curl command: curl "http://localhost:9002/hm1backend/subscribe?channel=testchannel&since=1"

You should receive 2,Hello again! straight away.

Something went wrong with that request. Please try again.