News for hackers. Stuff that matters.
Re:Show HN: An open source IRC client for your web browser by driverdan on Friday February 01, 2013 @09:32AM (#5150838)
How does this compare to subway?

https://github.com/thedjpetersen/subway

Re:Show HN: An open source IRC client for your web browser by stedaniels on Friday February 01, 2013 @09:52AM (#5150973)
Seems like both of them require as server. Something I think means the title is misleading about. It's certainly ambiguous. I was excited to see a browser based, all client side IRC client. Oh well.
Re:Show HN: An open source IRC client for your web browser by Wilya on Friday February 01, 2013 @10:28AM (#5151213)
I'm not sure I see how you can connect to an irc server directly from the browser without some sort of proxy. You can't do TCP from js.
Re:Show HN: An open source IRC client for your web browser by daleharvey on Friday February 01, 2013 @10:47AM (#5151358)
both chrome and firefox have tcp sockets apis, they are only usable in specific contexts, but you can write a web based irc client (there are a few around)
Re:Show HN: An open source IRC client for your web browser by Wilya on Friday February 01, 2013 @11:13AM (#5151546)
I stand corrected. Though as far as I can tell, it works only for apps in the chrome case[0] , and privileged web apps in firefox case[1].

[0] http://developer.chrome.com/apps/socket.html [1] https://wiki.mozilla.org/WebAPI/Security/TCPSocket

Re:Show HN: An open source IRC client for your web browser by malandrew on Saturday February 02, 2013 @03:32PM (#5157220)
FWIW the System Applications Working Group at the W3C is working on a Raw Sockets spec for the browser, but I don't think a final draft will be ready until 2014. Adoption across most browsers will then take a little longer.
Re:Show HN: An open source IRC client for your web browser by de90 on Friday February 01, 2013 @10:45AM (#5151330)
What about WebSockets, aren't they TCP?
Re:Show HN: An open source IRC client for your web browser by Wilya on Friday February 01, 2013 @11:04AM (#5151471)
Not directly. More like TCP-like messaging over HTTP. The server needs to understand the websockets protocol.

Writing a basic server that strips the websockets part from messages and forwards them to a real TCP server isn't very hard, but it's still a server you need.

Re:Show HN: An open source IRC client for your web browser by icebraining on Friday February 01, 2013 @11:55AM (#5151848)
It's not really "over HTTP", it's just an HTTP handshake:

  The WebSocket Protocol is an independent TCP-based protocol.  Its
  only relationship to HTTP is that its handshake is interpreted by
  HTTP servers as an Upgrade request.
http://tools.ietf.org/html/rfc6455#section-1.7
Re:Show HN: An open source IRC client for your web browser by cjstewart88 on Friday February 01, 2013 @10:52AM (#5151393)
nirc is not near as feature rich as subway at first glance. There's no logging(bouncer) when you disconnect or multi users. However, you can simply open a new tab and connect to another irc server.

Also, it looks like subway has a userlist in the ui. That's something that could be added to nirc easily I think. You can still message users using the "/msg USERNAME" command.

Re:Show HN: An open source IRC client for your web browser by nathos on Friday February 01, 2013 @11:46AM (#5151790)
This reminds me: why is Subway still using a stolen logo?