Giter Club home page Giter Club logo

deno-irc's People

Contributors

aronson avatar c-cube avatar jeromeludmann avatar simonsan avatar xyzshantaram avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

deno-irc's Issues

Exception in createNicklist on quit event from other users

Hello, I bring a strange issue I've been trying to debug in the production instance of my discord-irc fork. We love your library and it's been fantastic.

We're getting an exception in the createNicklist function that only crops up occasionally.

image

It seems to be immediately after a user quits the application bubbles up this exception. I've tried to reproduce it in my test environment but I don't get the exception on user quit. We plan to run the prod instance with a debugger at some point to see if we can get you more useful information for debugging.

Has anyone seen this problem before? We reboot the instance automatically for now with minimal downtime.

client.quit() raises "error: Uncaught (in promise) Interrupted: operation canceled"

Hi, when I ran the following code, it exits with the error.
The code is almost same to https://github.com/jeromeludmann/deno-irc#usage and I added client.quit();.
How can I properly quit from the IRC channel and disconnect from the IRC server?

import { Client } from "https://deno.land/x/irc/mod.ts";

const client = new Client({
  nick: "bot",
  channels: ["#general"],
});

client.on("join", (msg) => {
  if (msg.channel === "#general") {
    client.privmsg("#general", "Hello world!");
  }
  client.quit();
});

// no TLS
await client.connect("127.0.0.1", 6667);
❯ deno run -A irc-bot.ts
Check file:///Users/kyanny/workspaces/deno/irc-bot/irc-bot.ts
error: Uncaught (in promise) Interrupted: operation canceled
      read = await conn.read(this.buffer);
             ^
    at deno:core/01_core.js:106:46
    at unwrapOpResult (deno:core/01_core.js:126:13)
    at async read (deno:ext/net/01_net.js:21:19)
    at async Client.read (https://deno.land/x/[email protected]/core/client.ts:149:14)
    at async Client.loop (https://deno.land/x/[email protected]/core/client.ts:132:22)

Connecting over WebSockets?

I'm just wondering if it'd be worth our while to support connecting over WebSockets. AIUI the protocol is the same, the only difference being the transport. This would mean we could even eventually branch out to our code also running in the browser (which should be helped along by Deno emulating a browser environment as far as APIs etc go.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.