Skip to content
This repository has been archived by the owner on Oct 4, 2020. It is now read-only.

Issue with _changedoc function #13

Open
ghost opened this issue Apr 5, 2018 · 1 comment
Open

Issue with _changedoc function #13

ghost opened this issue Apr 5, 2018 · 1 comment

Comments

@ghost
Copy link

ghost commented Apr 5, 2018

When you receive a 'changed' event, get an error stating,
Uncaught TypeError: Cannot read property 'id' of undefined
at MeteorDdp._changeDoc (meteor-ddp.js:114)
at WebSocket.self.sock.onmessage (meteor-ddp.js:55)
MeteorDdp._changeDoc @ meteor-ddp.js:114
self.sock.onmessage @ meteor-ddp.js:55

This error comes on subscription.

@ghost
Copy link
Author

ghost commented Apr 6, 2018

nevermind I solved the issue by commenting
coll = this.collections[collName]; and declaring
var coll = {};
coll[id] = {};

But now there's one small problem, subscription isn't working, ie. I don't get notified on the arrival of any subscribed messages.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants