Git Product home page Git Product logo

Comments (3)

daffl avatar daffl commented on August 22, 2024

Is there a reason you are changing all the default settings? In general, websocket connections should be established using HTTP:

var socket = io('http://<myserveriporname>:4038', { transports: ['websocket']})

from socketio.

Zalasanjay avatar Zalasanjay commented on August 22, 2024

i have tried var socket = io('http://<myserveriporname>:4038', { transports: ['websocket']})
and it works better then my earlier code..! thank you for that.
at least my error failed: Connection closed before receiving a handshake response is solved

But some time when i start my services then getting this error (also this error renders when service is already running)

entityService.on('updated', updateEntity(app));
                    ^

TypeError: Cannot read property 'on' of undefined
    at Namespace.<anonymous> (/home/software/sanjay/80015/PROJECT/pdm/node_modules/@feathersjs/authentication/lib/socket/handler.js:161:21)
    at emitOne (events.js:121:20)
    at Namespace.emit (events.js:211:7)
    at Namespace.emit (/home/software/sanjay/80015/PROJECT/pdm/node_modules/socket.io/lib/namespace.js:212:10)
    at /home/software/sanjay/80015/PROJECT/pdm/node_modules/socket.io/lib/namespace.js:180:14
    at _combinedTickCallback (internal/process/next_tick.js:131:7)
    at process._tickCallback (internal/process/next_tick.js:180:9)

from socketio.

daffl avatar daffl commented on August 22, 2024

It needs a users service (or the entity service you configured for authentication) available.

from socketio.

Related Issues (20)

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.