Added new 'root' supervisor, and mnesia as child to this supervisor

This commit is contained in:
Jonatan Pålsson 2011-02-02 19:09:44 +01:00
parent 3d8b413a8f
commit 3285bb9a7e
6 changed files with 110 additions and 6 deletions

View file

@ -109,6 +109,7 @@ do_JSCall(Socket, Data, State) ->
{hello} ->
Client = getRef(),
send(Socket, Client, "__ok_hello"),
%gen_server:call(ggs_mnesia_controller_server, {hello, "Someone said hello!"}),
{Client, JSVM};
{echo, RefID, _, MSG} ->
send(Socket, RefID, "Your VM is ", getJSVM(RefID, State)),