in reply to Re^3: PSGI, Plack, Twiggy, AnyEvent and SockJS... I need help
in thread PSGI, Plack, Twiggy, AnyEvent and SockJS... I need help

Sorry! I will stop doing that. So far, one of the issues has been resolved: the problem with connection closing immediately. The node with updated code is here.

There is still a problem with the timer firing only once.

  • Comment on Re^4: PSGI, Plack, Twiggy, AnyEvent and SockJS... I need help

Replies are listed 'Best First'.
Re^5: PSGI, Plack, Twiggy, AnyEvent and SockJS... I need help
by Corion (Patriarch) on Apr 09, 2014 at 15:40 UTC

    Of course the timer fires only once, because we undef the timer in its callback. If you want to keep the timer running, you need to move its variable to somewhere that stays alive or never undef it in the callback.