Giter Site home page Giter Site logo

gcm-xmpp's People

Contributors

alemures avatar

Stargazers

 avatar

Watchers

 avatar

gcm-xmpp's Issues

ECONNRESET error

I was getting ECONNRESET for a long time and didn't know from which module.
Then I added "longjohn" (http://npmjs.com/longjohn) in project and got this:

Error: read ECONNRESET at exports._errnoException (util.js:1007:11)
at TLSWrap.onread (net.js:563:26)
---------------------------------------------
at Client._addListeners (/home//node_modules/gcm-xmpp/lib/Client.js:155:19)
at Client.connect (/home//node_modules/gcm-xmpp/lib/Client.js:128:8)
at new PushHelper (/home//modules/PushHelper.js:86:17)
at Function.PushHelper.instance (/home//modules/PushHelper.js:95:21)
at new module.exports (/home//modules/API.js:84:31)
at Function.API.instance (/home//modules/API.js:123:21)
at /home//modules/nodeRPC.js:37:19

I suppose, gcm-xmpp doesn't handle "error" event somewhere.
At least I had same issue with websocket implementation and solved by this:

socket.on('error', function(event) {
            if ('ECONNRESET' != event.code) {
                // log error
            }
});

Also not sure will gcm-xmpp send push notification again if this error happened.
If not - I think it should, else notification will be lost.

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.