Y
Y
Yan12342018-11-06 11:35:42
meteor
Yan1234, 2018-11-06 11:35:42

DDP Meteor (webSocket), get all params data socket?

When making a request to server meteor with client meteor, requests go by websockets, it sends something like this string ( ["{\"msg\":\"method\",\"method\":\xxxx\",\"params\" :[{\"debugInfo\":{\"file\":\"\",\"function\":\"\",\"hostname\":\"xxxx\",\"url\": \"/xxxx\",\"loginToken\":\"xxx\",\"realId\":\"xxx\",\"emulation\":false}},\"xxxx\"],\" id\":\"5\"}"] )
When executing meteor.methods - it only gets (\"xxxx\"],\"id\":\"5\"), how to get the whole object?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question