-
Notifications
You must be signed in to change notification settings - Fork 97
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
code doesn't work #5
Comments
Autopublish has nothing to do with Meteor Streams. But if you've insecure above code should work. If you've removed it, you need to add permissions to Meteor Streams. |
still returns undefined from server. created new project called asdf. mrt asdf cd asdf mrt add insecure localhost:3000
|
as of now this is still not working. |
Have you tried with multiple browsers. Your chat should move to the other browsers. |
still not working...it's a shame because this could be really great => Meteor server running on: http://localhost:5000/ |
hi @arunoda I just followed the above mentioned tutorial, and am having problems also. I created a new app, add streams, add sample chat from your introduction page, start two browsers, and call Here is a log of exactly how I set up:
|
were you able to get this running? still not working and no action from author.... |
did you get a chance to discuss? |
Guys sorry for not following up. Had some busy time with SmartCollections. This should work. Also tell me which meteor version using and the os. |
it was never working....honestly I feel like a broken record here. I was looking forward to use this but simply can't use it at the moment. |
@arunoda thanks for following up. I created a minimal app demonstrating the issue, https://github.com/rcy/meteor-streams-issue-5-repro I am using meteor 0.6.5.1, I removed autopublish, and kept insecure. |
Great. Let me check now. On Wed, Sep 11, 2013 at 11:48 PM, Ryan Yeske [email protected]:
Arunoda Susiripala @arunoda http://twitter.com/arunoda |
Yes. There is an issue. With the latest meteor versions insecure works differently. I've not updated streams with that. Anyway for now. You can add permissions and make this works. (Actually you need to add permissions in a real app) Add following code and it works if(Meteor.isServer) {
chatStream.permissions.read(function() {
return true;
});
chatStream.permissions.write(function() {
return true;
});
} |
Fixed with ebb9f3a and published as |
I did a mrt update, and it works as expected. Thanks @arunoda |
Awesome. I think I can close the issue now. |
chatStream = new Meteor.Stream('chat');
if(Meteor.isClient) {
sendChat = function(message) {
chatStream.emit('message', message);
console.log('me: ' + message);
};
chatStream.on('message', function(message) {
console.log('user: ' + message);
});
}
There was a large blurb about autopublish being enabled so I removed it. However, I tried it with autopublish and it didn't work.
I'm using the latest meteor version 0.6.4.1
The text was updated successfully, but these errors were encountered: