4 ms·
HTML5 IRC client built with Mojolicious, ExtJS and WebSockets
- japherwocky 16y agocan we read the server side code?
- kraih 16y agoOf course. http://github.com/xantus/mojo-websocket-examples/blob/master/script/websocket-irc-example-1 http://github.com/xantus/mojo-websocket-examples/blob/master...
- xantus 16y agoActually, its http://github.com/xantus/mojo-websocket-examples/blob/master/script/websocket-irc-example-2 http://github.com/xantus/mojo-websocket-examples/blob/master...
- pix0r 16y agoVery cool, quick and responsive. I'm curious if you could use websockets to connect directly to an irc server rather than going through your perl backend?
- pix0r 16y agoRead a little on web sockets (http://en.wikipedia.org/wiki/WebSocket http://en.wikipedia.org/wiki/WebSocket) - it sounds like the server is required to speak HTTP for the initial handshake, so connecting directly to an IRC server would not work.
- a-priori 16y agoNo, you need a server that speaks HTTP, at least minimally. This is by design so an XSS attack can't connect to arbitrary servers. However, you could very easily create a simple adapter that accepts Websocket connections and relays the data to a TCP server.
- james2vegas 16y agoYou could add code to your ircd to recognize it is being spoken to in a websockets way and speak the necessary HTTP voodoo to make it work.
- jrockway 16y agoDepends on the IRC server. Freenode's old IRC daemon was very liberal about the IRC protocol. If you "accidentally" included "POST /whatever HTTP/1.1" before the IRC commands, the server would be just fine with that. You could also send commands without acknowledging responses. This meant that an arbitrary HTTP request could create an IRC connection and send stuff to channels! The result was a web page that merely visiting would spam people on the IRC network with hate messages from your IP. It was amusing.
- icefox 16y agoDoes it really need to have a window manager?
- draegtun 16y agoThere's been a slew of blog posts on Mojolicious::Lite & Websockets recently: * http://vti.showmetheco.de/articles/2010/04/mojolicious-and-websockets.html http://vti.showmetheco.de/articles/2010/04/mojolicious-and-w... * http://d.hatena.ne.jp/yukikimoto/20100415/1271340273 http://d.hatena.ne.jp/yukikimoto/20100415/1271340273 * http://d.hatena.ne.jp/yukikimoto/20100418/1271601822 http://d.hatena.ne.jp/yukikimoto/20100418/1271601822
- elblanco 16y agoIt was almost awesome until I noticed none of the / commands work.
- xantus 16y agoIt has /join /part /nick /quit /msg /quote Thats a lot more than none. It's also an example.
- xantus 16y agoThe load avg on that machine hasn't gone above .01 :)