-2

Well title says most of it.

I was just reading net.Server class in node js , and i already know about socket.io , it seems like net.server class provides direct access to tcp layer , and we can implement sockets directly using this net.server class , so is socket.io also written using it ?

Or is it written on UDP/Datagram Sockets class:dgram.Socket ?

Thanks

Aishwat Singh
  • 4,331
  • 2
  • 26
  • 48

1 Answers1

0

Well u can always have a look at https://github.com/socketio/socket.io as it's open source .

Anyways, from what i infer from source, it's based on http neither net.server nor dgram.Socket You can refer source/lib/index.js

Also this says Socket.IO is a Lightweight protocol that sits on top of HTTP.

Hope it helps

Community
  • 1
  • 1
  • ya i had a look at source and s.o link , looks like it's written on Http , still vl keep looking from credible and official sources – Aishwat Singh Jan 29 '16 at 13:47