Skip to content
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

Realtime Publish #23

Merged
merged 27 commits into from
Aug 18, 2020
Merged

Realtime Publish #23

merged 27 commits into from
Aug 18, 2020

Conversation

tiholic
Copy link
Contributor

@tiholic tiholic commented Jul 28, 2020

Publishing realtime messages either as name and data or as a Message object or List<Message>

//publish name and data
await channel.publish(name: "event1", data: "Yesterday is history, tomorrow is a mystery, but today is a gift");
await channel.publish(name: "event1", data: {"Yesterday": "history", "tomorrow": "mystery", "today": "gift"});
await channel.publish(name: "event1", data: [{"Yesterday": {"is": "history"}, "tomorrow": {"mystery": true}, "day_after": null}, "today", "gift"]);

//publish single message
await channel.publish(message: ably.Message()..name = "event1"..data = {"today": "gift"});

//publish multiple messages
await channel.publish(messages: [
  ably.Message()..name="event1"..data = {"yesterday": "history"},
  ably.Message()..name="event1"..data = {"tomorrow": "mystery"},
  ably.Message()..name="event1"..data = {"today": "gift"}
]);

@tiholic tiholic force-pushed the feature/realtime-message-subscription branch from da53d26 to 7b4db0b Compare July 30, 2020 06:41
@tiholic tiholic force-pushed the feature/realtime-publish branch from 6e3750a to 41a97e1 Compare July 30, 2020 07:28
@tiholic tiholic force-pushed the feature/realtime-message-subscription branch from f40547b to 1624991 Compare August 3, 2020 10:35
@tiholic tiholic force-pushed the feature/realtime-publish branch from 9178040 to 9949795 Compare August 3, 2020 10:44
@tiholic tiholic requested a review from zoechi August 3, 2020 11:27
@tiholic tiholic force-pushed the feature/realtime-message-subscription branch from 1624991 to eb93cb5 Compare August 4, 2020 20:07
@tiholic tiholic force-pushed the feature/realtime-publish branch from 9949795 to c727e99 Compare August 4, 2020 20:19
@tiholic tiholic force-pushed the feature/realtime-message-subscription branch from 515167b to d582121 Compare August 12, 2020 15:09
Base automatically changed from feature/realtime-message-subscription to main August 12, 2020 15:11
@tiholic tiholic force-pushed the feature/realtime-publish branch from 59ff55b to 176d8c1 Compare August 12, 2020 15:13
Copy link
Contributor

@QuintinWillison QuintinWillison left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I seem to have been sat on this one for days, accumulating comments. Finally getting round to completing it. Few minor tweaks please.

@tiholic tiholic merged commit 66cb9d3 into main Aug 18, 2020
tiholic added a commit that referenced this pull request Aug 18, 2020
@tiholic tiholic deleted the feature/realtime-publish branch August 18, 2020 07:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants