Can I use node.js npm and socket.io on google app engine
Solution 1
Node support on Google App Engine is available through what Google calls "The App Engine flexible environment". Where your code is running in a docker container hosted by Google. This is in contrast to "The App Engine standard environment" where your code is running in some soft of custom built container. More info here. Documentation for Node on Google App Engine can be found here.
NOTE: The flexible environment is currently in beta! And according to Google not recommended for production use.
Web sockets can be used on Google App Engine. However according to this example for using websockets on Google App Engine; encrypted websockets are currently not supported.
For alternative hosting: The Node wiki maintains a list of hosting providers; old wiki(but somewhat maintained), new wiki. On these wiki pages you can find different types of both free and paid plans for Node hosting.
Solution 2
You would need to configure a Google Compute Engine instance to run a node application.
Solution 3
NodeJs is now suppprted on Google App Engine, as well as other languages. Just follow: https://cloud.google.com/nodejs/getting-started/hello-world
Related videos on Youtube
Peter Web
Updated on June 04, 2022Comments
-
Peter Web almost 2 years
Can I use node.js npm and socket.io on google app engine
or suggest some low-cost or free solution on cloud that provide a socket.io module becouse I need this for realtime omunication with server
-
noderman almost 8 yearsAs of june 2016, node is a supported language on Google Apps cloud.google.com/nodejs
-
Mohammad Abdurraafay almost 8 yearsNode.js is very much supported now as a part of Google AppEngine Flexible Env.. You could simply bring socket.io package and get the instance rolling. Pretty straight forward now.