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

Feat/support custom message type #110

Merged
merged 17 commits into from
Nov 20, 2024
Merged

Conversation

seba-aln
Copy link
Contributor

@seba-aln seba-aln commented Oct 23, 2024

feat: Add custom message type support for selected APIs

Add custom message type support for the following APIs - publish, signal, share file, subscribe and history

@seba-aln seba-aln force-pushed the feat/support-custom-message-type branch from 010ef6f to a6a5c0b Compare October 23, 2024 19:08
@seba-aln seba-aln force-pushed the feat/support-custom-message-type branch from a6a5c0b to 957552a Compare October 23, 2024 19:09
@seba-aln seba-aln force-pushed the feat/support-custom-message-type branch from 422ae5c to 2ffb7cd Compare October 25, 2024 06:39
@seba-aln seba-aln force-pushed the feat/support-custom-message-type branch from 2ffb7cd to 0d90f33 Compare October 25, 2024 06:43
@seba-aln seba-aln marked this pull request as ready for review November 15, 2024 11:32
examples/cli/pub.php Outdated Show resolved Hide resolved
@@ -15,24 +15,30 @@
$pnConfig = new PNConfiguration();
$pnConfig->setPublishKey(getenv('PN_KEY_PUBLISH'));

Choose a reason for hiding this comment

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

if PN_KEY_PUBLISH or PN_KEY_SUBSCRIBE is not set, the script might fail without a clear error message ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this is just a code example to be analyzed and not a demo :)

@@ -31,8 +31,9 @@ class FetchMessages extends Endpoint

protected bool $includeMeta = false;
protected bool $includeUuid = false;
protected bool $includeMessageType = false;
protected bool $includeMessageType = true;

Choose a reason for hiding this comment

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

Why you changed default from false to true ?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

to be in line with tomato. with the field set otherwise tomato failed all the time so I thought it's the proper value

@seba-aln seba-aln force-pushed the feat/support-custom-message-type branch 2 times, most recently from c1af17f to 29c7cf8 Compare November 20, 2024 08:11
@seba-aln seba-aln force-pushed the feat/support-custom-message-type branch from 29c7cf8 to e5c5462 Compare November 20, 2024 08:13
@seba-aln
Copy link
Contributor Author

@pubnub-release-bot release

@seba-aln seba-aln merged commit 9c0e653 into master Nov 20, 2024
8 checks passed
@seba-aln seba-aln deleted the feat/support-custom-message-type branch November 20, 2024 08:57
@pubnub-release-bot
Copy link
Contributor

🚀 Release successfully completed 🚀

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

Successfully merging this pull request may close these issues.

4 participants