Jump to content
McKay Development

Recommended Posts

Posted (edited)

Yeah I get that but how do I remove steam-user listeners once they've been set. I've tried client.removeListener('loggedOn') but I got a lot of errors. I also tried searching in the steam-user files but what I tried didn't work either.

 

"require('util').inherits(SteamUser, require('events').EventEmitter);"

Edited by timgfx
Posted

As per the documentation, you need to pass the actual function that you want to remove as a listener to removeListener.

I tried that but it didn't work

 

I did this: 

client.on("loggedOn", function(details, parental) {
            logonfunc(details, parental);
        });

        client.removeListener("loggedOn", function(details, parental) {
            logonfunc(details, parental);
        });

And tried the same with removing the logonfunc function. How would I do it because I'm lost

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Loading...
×
×
  • Create New...