-
Notifications
You must be signed in to change notification settings - Fork 31
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
API changes #15
Comments
ACK |
Comments from #13:
func newRestChannel(name string, client *RestClient) *RestChannel {
c := &RestChannel{
Name: name,
client: client,
}
c.Presence = &RestPresence{
client: client,
channel: c,
}
return c
}
|
I see where you are going with that but I think it's a step too far to merge these two. Doing something like On the other hand, the libraries are all defining a Presence object and if you do this, the documentation would deviate again, which causes us to have to handle an edge case in our textile files (https://github.com/ably/docs/blob/d31ebe5667ec547f87798827d438f168a579834f/content/rest/presence.textile). Also, I think it's nice to have this RestPresence struct still available on the rest part as it is the counterpart of the realtime one where you will definitely not be able to merge it into the realtime channel go file. See https://github.com/ably/ably-ruby/blob/6a5f9607f18519ae0f58927d11a187371cda4091/lib/ably/realtime/presence.rb. We could discuss this if you feel like this is a good addition (we are very open to ideas), but I think we are too far in the development of our product to implement this now :(. |
Unfortunately I have to agree with @kouno. One of Ably's primary objectives was to provide a consistent (as possible) API across all languages. I don't see any technical reason why we can't mostly achieve that with Go so I'd prefer to keep it as similar as possible please. |
@kouno @mattheworiordan Clear to me, no need for further discussion, I'm not strongly opinionated about merging |
Sent #17 to fix the API. Please give me a note when you're done discussing changes in ably/ably-js#33, and I'll address those in #12. |
I am closing this issue as I will summarise all API changes in one issue |
Don't action yet, but take a look at ably/ably-js#33 where we are proposing a final set of API changes before we roll out stable versions.
The text was updated successfully, but these errors were encountered: