Arbab Khan
Posts: 0
Joined: Thu Jan 02, 2014 3:45 am

Can we use Node.js (asynchronous) code for the appery server?

Can we add node.js javascript for the server code on appery somehow? Since node.js is async, it would be useful in a chat application or something where page loading won't have to be as burdensome. I know about caching pages, it is useful but I don't know how to rely on that for a large project. Please help.

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Can we use Node.js (asynchronous) code for the appery server?

Appery.io Server Code is based on Google's V8 JavaScript engine: https://code.google.com/p/v8/. Right now you can send synchronous requests. We are working on allowing asynchronous requests as well.

Arbab Khan
Posts: 0
Joined: Thu Jan 02, 2014 3:45 am

Can we use Node.js (asynchronous) code for the appery server?

Thank you for your prompt reply. Is there a way to have page caching done globally thru one js function or script? Other than adding to each page individually...

maxkatz
Posts: 0
Joined: Fri Aug 13, 2010 3:24 pm

Can we use Node.js (asynchronous) code for the appery server?

Page caching or JavaScript data caching?

Arbab Khan
Posts: 0
Joined: Thu Jan 02, 2014 3:45 am

Can we use Node.js (asynchronous) code for the appery server?

Page caching. Like how pages in a paginated list are cached so going prev or next will load faster. But doing that to all the elements of all pages.

Arbab Khan
Posts: 0
Joined: Thu Jan 02, 2014 3:45 am

Can we use Node.js (asynchronous) code for the appery server?

Oh ok through jquery. Thank you!

Jamie5245261
Posts: 0
Joined: Thu Feb 20, 2014 2:01 pm

Can we use Node.js (asynchronous) code for the appery server?

Max writes:

[quote:]We are working on allowing asynchronous requests as well. [/quote]

This is great news. I'm trying to build an app that requires similar functionality to what Arbab mentions, above. It seems that the setTimeout function is not available in server code and that's a shame. I've had to (hopefully temporarily) work around this by sending pings often to the server to see if there's been any updates to pass along to my users.

This is a "must have" feature for developers that have any sort of "live" activity going on between two or more app users.

So, in short, I just wanted to give a "thumbs up" or a "bump" or whatever you'd like to call it to this post.

Return to “Issues”