3

are an API your operating system provides for network communication.

is also a library for network communication, but it acts more like HTTP and tries to hide the underlying implementation from you. It may use plain old sockets, but you couldn't tell. It also introduces a bunch of abstraction on top, like a system of rooms, where connections can be added to rooms and then you can broadcast messages to specific rooms.

Many questions about socket.io get tagged with because of course socket.io calls its things sockets. Example one two three four five.

Is it appropriate to remove from these questions?

4
  • 2
    @KevinB I think this is more like asking whether sockets should be tagged on HTTP questions. Many questions tagged [sockets]+[socket.io] have nothing to do with the way data is transported - they can be about the rooms API, for example. Commented Jul 28, 2022 at 19:15
  • That second linked question is clearly just a mistag anyways, since it's tagged [sockets] [io] lol
    – zcoop98
    Commented Jul 28, 2022 at 20:47
  • 1
    As with almost all questions of the "should I do [blanket action]?" sort, the answer is, "It depends". Were you actually expecting an answer that said something different? Commented Jul 28, 2022 at 23:29
  • Unix/linux sockets are the same as Microsoft's pipes and are network terminology with specific questions about networking what that questions have to do with a library is beyond me
    – nbk
    Commented Jul 29, 2022 at 0:58

2 Answers 2

8

I'm gonna throw my hat in the "generally yes" camp, though we always need to handle each individual post according to its own merits when making edits.

is an abstraction of "sockets" as a concept, and in practice is a library built on top of WebSockets to offer a more robust and feature-rich experience than WebSockets alone can offer.

, on the other hand, is more of a lower-level mechanism; the tag wiki describes them as "an endpoint of a bidirectional inter-process communication flow". This is distinct from protocols or abstractions, and the wiki itself explicitly asks readers not to confuse them with such, even mentioning by name:

Not to be confused with (a protocol) or other abstractions (e.g. ).

Given the above then, I don't see how a question asking about the library could ever have much to do with , the flow endpoint mechanism. This then means that the vast, vast majority of questions tagged with should not be tagged with .

(Glancing over the library docs, I really don't see how traditional could come into play for library users at all, since the library seems to intentionally abstract them away based on what I can tell.)

5

I wouldn't touch it.

Given that the tag description for socket differs wildly from the tag description for socket.io, this leads me to believe that is some kind of library or framework which also deals with s.

0

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .