Git Product home page Git Product logo

Comments (4)

codingfriend1 avatar codingfriend1 commented on May 13, 2024

It should automatically connect to feathers using sockets as long as you are making api requests client side. You can see the feathers.service.js and sync.list.service. If you are making api requests server side it will use axios. Take a look at the services/api/ folder. This is for if you want to retrieve information for server side rendering before you render the page.

.configure(socketio(socket))

from feathers-vue.

rito avatar rito commented on May 13, 2024

I understood that it would work automatically. But it was not what I expected. So, I think, I dont understand correctly.
I started the project, log in and Add a message. After that, I went to MongoDB and changed the same message. This information is not reflected on the screen. I'm forced to refresh the screen. :(

from feathers-vue.

codingfriend1 avatar codingfriend1 commented on May 13, 2024

I don't believe real time watches the database for changes, it builds off of events generated by the server or API events. So you would have to change the message through something like postman where you are making an API request.

from feathers-vue.

rito avatar rito commented on May 13, 2024

Thanks.
I will think about. This resolves 80% for my solution. I will study your project. Thanks.

from feathers-vue.

Related Issues (11)

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.