Z
Z
ZallinTim2014-10-16 09:08:14
Node.js
ZallinTim, 2014-10-16 09:08:14

What to use to connect two players?

I am writing an online game, I think what to use to connect two players on the Node.JS server (The model is the simplest - data comes from one player, you need to forward it to another).
The first and, so far, the only thought was the use of sockets. For example, socket.io (Which has a mechanism for separating connections into different namespaces and separate rooms). Did I make the right choice, or is there something more convenient?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
G
GavriKos, 2014-10-16
@ZallinTim

You have to look at the game. In a turn-based strategy, you can get by with something that does not keep a constant connection. But in general - yes, sockets are what you need.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question