0

It seems that every question about sockets and Javascript results to an answer to use WebSockets. OK, I get that. I know you can't use sockets because of the same-origin policy.

BUT. Are sockets just non-existent from the browser or do they exist and just happen to be limited?

LittleBobbyTables - Au Revoir
  • 32,008
  • 25
  • 109
  • 114
Pithikos
  • 18,827
  • 15
  • 113
  • 136
  • http://stackoverflow.com/a/1736422/965907 – Shomz Jan 06 '15 at 15:24
  • possible duplicate of [How to Use Sockets in JavaScript\HTML?](http://stackoverflow.com/questions/1736382/how-to-use-sockets-in-javascript-html) – Rhumborl Jan 06 '15 at 15:25
  • @Rhumborl and again everyone is sending me to Websockets.. – Pithikos Jan 06 '15 at 16:49
  • Top-rated answer from the duplicate starts with: `There is no facility to use general-purpose sockets in JS or HTML. It would be a security disaster, for one.` I didn't send you to WebSockets, you just asked the same question – Rhumborl Jan 06 '15 at 16:51
  • @Rhumborl Sometimes you have to read behind the lines. That guy just looks for a fast hack. I am wondering if **normal** sockets exist. – Pithikos Jan 06 '15 at 17:06

1 Answers1

0

There is a working draft on TCP/UDP sockets, previously referred to as the "Raw Socket API."

This library implements it. I have not tested it personally, but it's probably what you're looking for.

anthonyserious
  • 1,758
  • 17
  • 15