The difference between the meteor method and the meteorite

I work with a meteorite to create an application. In meteor, Meteor.methods and Meteor.publish are used to perform database operations.I know use of Meteor methods and pub/sub

My question is: are there any criteria for using Meteor.methods and Meteor.publish ?

+4
source share
2 answers

Meteor.publishis part of the pub-sub. As you add or change the data to be published, the server will automatically send it to the client.

Meteor.call - -. , . . , , , .

+5

Meteor Publish Subscribe - ( ) . / .

Meteor , , , API (HTTP- API REST) ​​ .. (PS ).

, , Meteor ( Meteor.call), .

, - .

+1

Source: https://habr.com/ru/post/1617184/


All Articles