Skip to content

Instantly share code, notes, and snippets.

@wardbekker
Created September 9, 2011 11:43
Show Gist options
  • Save wardbekker/1206002 to your computer and use it in GitHub Desktop.
Save wardbekker/1206002 to your computer and use it in GitHub Desktop.
handle_websocket(Ws) ->
receive
{browser, Data} ->
Ws:send(["performing query'", Data, "'"]),
query_ser:do_async_query(
string:tokens(Data, " "),
["Tags", "CreationDate"],
?MODULE,
query_results,
[Ws]
),
handle_websocket(Ws);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment