Re:WebTCP: Making TCP Connections From Browser
by chewxy on Wednesday November 28, 2012 @06:03PM
(#4845301)
I wouldn't. I'd make a HTTP call to the server, and let the server handle it. (i.e. your "what's so different from the backend method")?
[ Parent
| on HN ]
Re:WebTCP: Making TCP Connections From Browser
by yankoff on Wednesday November 28, 2012 @06:12PM
(#4845342)
Yep, and i wrote about differences to such approach in the post. Don't get me wrong, this is definitely a hack, I'm not saying people should stop doing it the old way.
Re:WebTCP: Making TCP Connections From Browser
by chewxy on Wednesday November 28, 2012 @06:15PM
(#4845354)
Likewise. While I appreciate the concept of a bridge (I'm a strong believer that the fastest app is the app that does practically nothing at all, and I can see the benefit of using a TCP-bridge like thing to make something faster), I just think we should not be reinventing the wheel.
That is to say, if you need a TCP connection to any server, you probably should not be implementing it over HTTP (well, this is where definitions get difficult, since you know, HTTP is technically TCP. Fuck)