|Do you know where your variables are?|
Mojolicious: Websocket example under hypnotoadby farkhadbek (Initiate)
|on Jul 08, 2014 at 13:46 UTC||Need Help??|
farkhadbek has asked for the wisdom of the Perl Monks concerning the following question:
I would like to have chat-application, very similar to this websocket example:
But this is not working when this aplication is running under hypnotad.
Problem is in 'global' varibale $clients where reference to client's tx is stored. $clients is not global enough and of course not shared between hypnotoad workers (processes).
To solve this problem, the author of this example offered use Database or KeyValueStore to save "reference to clients tx".
Can anybody suggest how to do it?