evan-buss / openbooks

Search and Download eBooks
https://evan-buss.github.io/openbooks/
MIT License
1.84k stars 58 forks source link

Fix for permanent web app #15

Closed SmartBoy84 closed 3 years ago

SmartBoy84 commented 3 years ago

I've been using this as a webapp hosted on https://books.gabba.ga/

The changes I make were the following: Auto-selected wss or ws based on html protocol and was window.location.host to find address IRC seems to time out after a while so I implemented a timer that closes irc connection if no client was connected for 10 minutes.

I'll make a pull request if I figure out how to... I'm trying currently to recreate this in node js, like you I don't want to use an irc library but rather make my own. The advantage of making this solely in n-js would be that I can have many concurrent people using the app and the irc connection would be "hosted" locally on their computers

SmartBoy84 commented 3 years ago

You also don't need the 30 second wait, I have been the app for a while without any repercussions (being banned etc)

evan-buss commented 3 years ago

You also don't need the 30 second wait, I have been the app for a while without any repercussions (being banned etc)

The 30 second wait is there because once you first join the IRC channel, there is a server rule that prevents searching for 30 seconds. If you send a search before time is up, it doesn't go into the queue. Not sure if those rules changed.

SmartBoy84 commented 3 years ago

*Created pull request #16

SmartBoy84 commented 3 years ago

The webserver hosting the app is on: Book Store Excuse me changing the title - if you want me to keep "openBooks" as the title so to better spread awareness of your project then please tell me! :)