Imgur / incus

incus is a middleware for distributing messages via websockets, long polling, and push notifications
MIT License
362 stars 37 forks source link

this.Command["user"] might not always be set #62

Open briankassouf opened 9 years ago

briankassouf commented 9 years ago

We should error if user is not set on pushormessage call

https://github.com/Imgur/incus/blob/master/message.go#L126

AdriVanHoudt commented 9 years ago

does this mean you can only websocket to certain users atm?

briankassouf commented 9 years ago

No, it means the pushormessage feature needs a specific user. The basis of this feature is if the user is on a web browser, then incus will route the message to the browser. If they are not online on the browser, it will route the message to the user's phone.

AdriVanHoudt commented 9 years ago

ok I see, makes sense