Create a gist now

Instantly share code, notes, and snippets.

What would you like to do?
DDP 분석
/* 로그인 없음 */
14:07:20.485 {"msg":"connect","version":"1","support":["1","pre2","pre1"]}
14:07:20.486 a {"server_id":"0"}
14:07:20.634 a {"msg":"connected","session":"wqr3vuoJSYXvHLKyR"}
14:07:20.486 {"msg":"sub","id":"nhyS7NmraDAk8Y5Nc","name":"meteor_autoupdate_clientVersions","params":[]}
14:07:20.636 a {"msg":"added","collection":"meteor_autoupdate_clientVersions","id":"HgGFXuNFEw4TeHb7S","fields":{"current":true}}
14:07:20.639 a {"msg":"added","collection":"meteor_autoupdate_clientVersions","id":"version","fields":{"version":"3953cc195bf2ea8538cc04c228043b0222c64faa"}}
14:07:20.639 a {"msg":"added","collection":"meteor_autoupdate_clientVersions","id":"version-cordova","fields":{"version":"none","refreshable":false}}
14:07:20.640 a {"msg":"added","collection":"meteor_autoupdate_clientVersions","id":"version-refreshable","fields":{"version":"4d68205e4c57f75e9a5ca7e7fd446277ef11e2e4","assets":{"allCss":[{"url":"/merged-stylesheets.css?hash=20ae2c8d51b2507244e598844414ecdec2615ce3"}]}}}
14:07:20.641 a {"msg":"ready","subs":["nhyS7NmraDAk8Y5Nc"]}
/* add accounts-password package 후 접속 */
14:37:19.552 {"msg":"connect","version":"1","support":["1","pre2","pre1"]}
14:37:19.554 a {"server_id":"0"}
14:37:19.717 a {"msg":"connected","session":"rbZGugboSHxdJj3SM"}
14:37:19.552 {"msg":"sub","id":"huakvb7gsD5787idE","name":"meteor.loginServiceConfiguration","params":[]}
14:37:19.725 a {"msg":"ready","subs":["huakvb7gsD5787idE"]}
14:37:19.552 {"msg":"sub","id":"A75paHPyhWJLYHihL","name":"meteor_autoupdate_clientVersions","params":[]}
14:37:19.727 a {"msg":"added","collection":"meteor_autoupdate_clientVersions","id":"NfPD8a3fc9PPMcy96","fields":{"current":true}}
14:37:19.728 a {"msg":"added","collection":"meteor_autoupdate_clientVersions","id":"version","fields":{"version":"4479e7650e0a698854ae1fda50b2402cf3cb9e7f"}}
14:37:19.729 a {"msg":"added","collection":"meteor_autoupdate_clientVersions","id":"version-cordova","fields":{"version":"none","refreshable":false}}
14:37:19.729 a {"msg":"added","collection":"meteor_autoupdate_clientVersions","id":"version-refreshable","fields":{"version":"4d68205e4c57f75e9a5ca7e7fd446277ef11e2e4","assets":{"allCss":[{"url":"/merged-stylesheets.css?hash=20ae2c8d51b2507244e598844414ecdec2615ce3"}]}}}
14:37:19.730 a {"msg":"ready","subs":["A75paHPyhWJLYHihL"]}
/* user account 생성 (method call) */
14:42:07.737 {"msg":"method","method":"createUser","params":[{"email":"jhee@appsoulute.com","password":{"digest":"ef51306214d9a6361ee1d5b452e6d2bb70dc7ebb85bf9e02c3d4747fb57d6bec","algorithm":"sha-256"}}],"id":"1"}
14:42:08.129 a {"msg":"added","collection":"users","id":"pJdkcRjHTGmKzE9hv"}
14:42:08.216 a {"msg":"changed","collection":"users","id":"pJdkcRjHTGmKzE9hv","fields":{"emails":[{"address":"jhee@appsoulute.com","verified":false}]}}
14:42:08.217 a {"msg":"ready","subs":["nMNSBT5BSK9iSZays","ghYPfoKbZwsArKs3F"]}
14:42:08.218 a {"msg":"updated","methods":["1"]}
14:42:08.225 a {"msg":"result","id":"1","result":{"id":"pJdkcRjHTGmKzE9hv","token":"3MFpDmTtUXXkmKR5JJ0OUJODb_O19BzFXcLRu0JIqmd","tokenExpires":{"$date":1484372528136}}}
/* login 후 접속 */
14:44:42.659 {"msg":"connect","version":"1","support":["1","pre2","pre1"]}
14:44:42.661 a {"server_id":"0"}
14:44:42.825 a {"msg":"connected","session":"RZdGjrRZPc7DzErCY"}
14:44:42.660 {"msg":"method","method":"login","params":[{"resume":"3MFpDmTtUXXkmKR5JJ0OUJODb_O19BzFXcLRu0JIqmd"}],"id":"1"}
14:44:42.827 a {"msg":"added","collection":"users","id":"pJdkcRjHTGmKzE9hv"}
14:44:42.829 a {"msg":"changed","collection":"users","id":"pJdkcRjHTGmKzE9hv","fields":{"emails":[{"address":"jhee@appsoulute.com","verified":false}]}}
14:44:42.830 a {"msg":"updated","methods":["1"]}
14:44:42.842 a {"msg":"result","id":"1","result":{"id":"pJdkcRjHTGmKzE9hv","token":"3MFpDmTtUXXkmKR5JJ0OUJODb_O19BzFXcLRu0JIqmd","tokenExpires":{"$date":1484372528136}}}
14:44:42.661 {"msg":"sub","id":"fk7XczjsAPmzSpfvA","name":"meteor.loginServiceConfiguration","params":[]}
14:44:42.846 a {"msg":"ready","subs":["fk7XczjsAPmzSpfvA"]}
14:44:42.661 {"msg":"sub","id":"TfMrFK7x3wahjvMHB","name":"meteor_autoupdate_clientVersions","params":[]}
14:44:42.847 a {"msg":"added","collection":"meteor_autoupdate_clientVersions","id":"NfPD8a3fc9PPMcy96","fields":{"current":true}}
14:44:42.847 a {"msg":"added","collection":"meteor_autoupdate_clientVersions","id":"version","fields":{"version":"4479e7650e0a698854ae1fda50b2402cf3cb9e7f"}}
14:44:42.848 a {"msg":"added","collection":"meteor_autoupdate_clientVersions","id":"version-cordova","fields":{"version":"none","refreshable":false}}
14:44:42.848 a {"msg":"added","collection":"meteor_autoupdate_clientVersions","id":"version-refreshable","fields":{"version":"4d68205e4c57f75e9a5ca7e7fd446277ef11e2e4","assets":{"allCss":[{"url":"/merged-stylesheets.css?hash=20ae2c8d51b2507244e598844414ecdec2615ce3"}]}}}
14:44:42.848 a {"msg":"ready","subs":["TfMrFK7x3wahjvMHB"]}
/* logout method call */
14:50:48.917 {"msg":"method","method":"logout","params":[],"id":"2"}
14:50:48.964 a {"msg":"changed","collection":"users","id":"pJdkcRjHTGmKzE9hv","cleared":["emails"]}
14:50:48.969 a {"msg":"ready","subs":["o8kDx5AaGYWCrvoRP","rapCvSHKcNCoSz2Lk"]}
14:50:48.975 a {"msg":"updated","methods":["2"]}
14:50:48.977 a {"msg":"result","id":"2"}
/* login fail */
14:54:39.699 {"msg":"method","method":"login","params":[{"user":{"email":"jhlee@appsoulute.com"},"password":{"digest":"1fd6202c9bb335c65040575f892b4b9269651729adf08036bf11bc4694d9421d","algorithm":"sha-256"}}],"id":"4"}
14:54:39.714 a {"msg":"updated","methods":["4"]}
14:54:39.715 a {"msg":"result","id":"4","error":{"error":403,"reason":"User not found","message":"User not found [403]","errorType":"Meteor.Error"}}
Owner

acidsound commented Oct 16, 2016

특이한 점은 users는 특별한 collection으로 별도의 subscribe를 하지 않아도 항상 지켜봐야하며 unsubs를 할 수 없음.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment