Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Implement "stats" page with server-side delay #4

Open
msgilligan opened this issue May 5, 2013 · 3 comments
Open

Implement "stats" page with server-side delay #4

msgilligan opened this issue May 5, 2013 · 3 comments

Comments

@msgilligan
Copy link
Member

Port stats.gtpl to Node.js. This means figuring out a way of forcing a two second delay before the page is returned.

@msgilligan
Copy link
Member Author

@mikhailxu @truedat101 How can you easily and cleanly do a 2-second delay using Node.js (or connect, etc)

@truedat101
Copy link

For sure you can use set timeout().  For a node sleep, see answer http://stackoverflow.com/questions/13448374/how-to-sleep-the-thread-in-node-js-without-affecting-other-threads

@msgilligan
Copy link
Member Author

I figured there would be a setTimeout(). But I don't know how to integrate that with Node page- or template-serving functions. I'm hoping for a pull-request :)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants