V
V
Vladislav Rybakov2015-06-27 14:32:01
Node.js
Vladislav Rybakov, 2015-06-27 14:32:01

Where can I get an example of a long-polling server on Node.js in the image and likeness of Tornado?

I want to make a game server in Node.js.
I have little experience in programming in python, or rather I worked with one of its frameworks - Tornado.
Is there a similar framework in Node.js that makes long-polling connections just as easy?
If not, then tell me where to read to start acquaintance with node.js from solving this particular problem?
I think Socket.io will be enough to get you started. Thanks :)

Answer the question

In order to leave comments, you need to log in

2 answer(s)
K
Konstantin Kitmanov, 2015-06-27
@vladrybak

Socket.io provides a continuous connection between the client and the server, including through long-polling (if web sockets are not supported by the client).

T
Timur Shemsedinov, 2015-06-27
@MarcusAurelius

Acquaintance with node.js should start with its basics, and not immediately crash into an applied topic, because as a result you will start to shit-code without understanding the concept of development. This is how to grab on top, it is very harmful, because you will still rewrite and swear all the code. And we have already started with this, for example, you don’t need to do any long-pooling, but you need SSE or WebSocket, for which there are libraries ws , websocket , sse and others. But I advise you to start mastering them when you test your knowledge, for example, here nodeschool.io will help you adequately assess your strengths on your own.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question