Can a browser-based IRC client communicate with an IRC server directly?
Asked Answered
B

4

7

Is it possible for a browser-based irc client to work without using any gateway, that is, to communicate with the irc sever directly?

Baseball answered 23/4, 2010 at 5:2 Comment(1)
You can use wsproxy. See another thread for more into stackoverflow.com/questions/4176344/websocket-relayMonarchist
Y
-2

In the future this could be done with websockets, currently only chrome supports them but they are a part of the html 5 spec. http://dev.w3.org/html5/websockets/

This post suggests Kaazing has an in the mean time javascript work around: https://stackoverflow.com/questions/1252829/what-browsers-support-html-5-websocket

I'd expect that the workaround uses something like java or flash to simulate websockets.

Yawmeter answered 23/4, 2010 at 5:26 Comment(3)
Are you sure about WebSockets? The site you linked to states: "This interface does not allow for raw access to the underlying network. For example, this interface could not be used to implement an IRC client without proxying messages through a custom server."Cinthiacintron
From all of the reading I've done so far, it looks like this answer is wrong. WebSockets don't work for direct connections to non-HTTP servers.Pieria
Just a wrong terminology ... it is TCP Sockets. Currently implemented in Firefox OS, so for example Firesea IRC is possible.Thromboembolism
S
12

HTML5 WebSockets are unable to make connections to non-WebSocket Servers. With WebSockets you can only connect to servers that can response to WebSocket Protocol Handshake requests. So no, you won't be able to use HTML5 to do an IRC Client (which is very sad since Flash is perfectly capable of doing this).

Singh answered 16/9, 2010 at 8:34 Comment(0)
M
1

wsproxy can be used as intermediate layer to exchange messages. See other thread for more info

https://stackoverflow.com/questions/4176344/websocket-relay

Monarchist answered 26/2, 2013 at 16:5 Comment(0)
M
-1

Sure, as long as you're using an extension or browser language that can talk the IRC protocol, e.g. ChatZilla or PJIRC.

Mong answered 23/4, 2010 at 5:4 Comment(1)
I don't think OP is trying to chat using a browser, but trying to develop a web based IRC client.Brandenbrandenburg
Y
-2

In the future this could be done with websockets, currently only chrome supports them but they are a part of the html 5 spec. http://dev.w3.org/html5/websockets/

This post suggests Kaazing has an in the mean time javascript work around: https://stackoverflow.com/questions/1252829/what-browsers-support-html-5-websocket

I'd expect that the workaround uses something like java or flash to simulate websockets.

Yawmeter answered 23/4, 2010 at 5:26 Comment(3)
Are you sure about WebSockets? The site you linked to states: "This interface does not allow for raw access to the underlying network. For example, this interface could not be used to implement an IRC client without proxying messages through a custom server."Cinthiacintron
From all of the reading I've done so far, it looks like this answer is wrong. WebSockets don't work for direct connections to non-HTTP servers.Pieria
Just a wrong terminology ... it is TCP Sockets. Currently implemented in Firefox OS, so for example Firesea IRC is possible.Thromboembolism

© 2022 - 2024 — McMap. All rights reserved.