Method call lifecycle
2018-04-09 17:11:36 0 举报
Meteor method call cycle
作者其他创作
大纲/内容
fire callback passed to Meteor.call
Exception
No
send resultMethodID + Returen Value
Server
Call Method
send DDPMethodName + argument + MethodID
send no return value but error
Client
no
throwStubExceptionsin Meteor.apply
send DDP updated message with MethodID
Rollback: replace data with actual result
end
yes
error?
stop
Run on server
Yes
onResultReceivedin Meteor.apply
update any publicationson the page
update Optimitcal UI instantlywith simulated result
Simulate
0 条评论
下一页