[erlang-questions] websockets and streaming quote help

Joseph Goldberg <>
Thu May 3 10:29:12 CEST 2012


Can someone help me getting user authentication done with websockets and rabbitmq to consume and distribute streaming quotes to my subscribed users.
I have a wave file of our conversation over skype, where he gives other details.

 http://armstrongonsoftware.blogspot.ca/2009/12/comet-is-dead-long-live-websockets.html

http://blog.dberg.org/2012/04/using-gproc-and-cowboy-to-pass-messages.html

[6:46:27 PM] Adam Denenberg: Our last step is to actually broadcast a message that contains this format.  Now, here is where you need to roll your own logic to determine how you want to ingest messages (queue, webservice, etc), but once your app gets the message you are waiting for all you need is one line to send the message:

gproc:send({p, l, ?WSKey}, {self(), ?WSKey, Msg})
[6:46:44 PM] Adam Denenberg: This simply sends message "Msg" to all the processes that were registered with the key ?WSKey and then gets handled in websocket_info and thus passed over the websocket connection.


also need fix protocol implementation done with MQ and sequence number checking which he does not do


http://www.codeproject.com/Articles/35439/Fix-Protocol-C-Fix-Engine-Source-Code


Yes that's true. but tcpip messages are not erroneus/corrupted. the point of this code is to be fast - eg i do not verify the checksum. in fact i don't even bother to check the incoming message sequence number. i just have two safety checks in the code which check the message starts 8= and then 35=.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20120503/ecfe273d/attachment.html>


More information about the erlang-questions mailing list