kiwiirc / irc-framework

🛠️ A better IRC framework for node.js. For bots and full clients.
MIT License
182 stars 65 forks source link

Is it possible to use in the browser with ports blocked? #265

Closed mmdevcodes closed 4 years ago

mmdevcodes commented 4 years ago

In Chrome for example I get the error Uncaught DOMException: Failed to construct 'WebSocket': The port 6697 is not allowed.

Virtually all IRC servers are on the 6XXX ports. Does this mean it's not possible to use within the browser?

ItsOnlyBinary commented 4 years ago

You need to connect to a websocket, not a tcp socket. if you run your own ircd then both inspircd & unrealircd support websockets. The other option is a websocket <-> tcp proxy like webircgateway.

mmdevcodes commented 4 years ago

Thanks for replying so fast. It looks like a strictly only browser-based solution without running a server is not possible then. Unfortunate.