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

Add custom message type support #199

Merged
merged 36 commits into from
Nov 25, 2024
Merged

Add custom message type support #199

merged 36 commits into from
Nov 25, 2024

Conversation

parfeon
Copy link
Contributor

@parfeon parfeon commented Nov 14, 2024

feat(message-type): add custom message type support

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

feat(ipv6): add connectivity setter

Add pubnub_set_ipv4_connectivity and pubnub_set_ipv6_connectivity to pubnub_coreapi to switch preferred connectivity protocol.

fix(proxy): add proxy context reset on connection close

Make sure that in case of connection close (including because of error) proxy context object will be reset.

Add custom message type support for the following APIs: publish, signal, share file, subscribe
and history.
@parfeon parfeon added status: done This issue is considered resolved. priority: medium This PR should be reviewed after all high priority PRs. type: feature This PR contains new feature. labels Nov 14, 2024
@parfeon parfeon self-assigned this Nov 14, 2024
@parfeon parfeon changed the title feat(message-type): add custom message type support Add custom message type support Nov 14, 2024
Copy link
Contributor

@Xavrax Xavrax left a comment

Choose a reason for hiding this comment

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

Implementation LGTM - shouldn't we add some test for it?

result.replicate = true;
result.meta = NULL;
result.method = pubnubSendViaGET;
result.ttl = SIZE_MAX;
Copy link
Contributor

@KGronek-Pubnub KGronek-Pubnub Nov 18, 2024

Choose a reason for hiding this comment

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

In pubnub_publish_defopts method description there is mention of all default values, except ttl and custom_message_type. I think it could be worth to add those as well.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure, we can do it :)

Add `pubnub_set_ipv4_connectivity` and `pubnub_set_ipv6_connectivity` functions to make it possible
to enforce specific protocol usage.

test(message-type): add subscription test for custom message type

Modify subscription integration with additional information about custom message type to check
parsing.
Add `pubnub_set_ipv4_connectivity` and `pubnub_set_ipv6_connectivity` to `pubnub_coreapi` to switch
preferred connectivity protocol.

fix(proxy): add proxy context reset on connection close

Make sure that in case of connection close (including because of error) proxy context object will
be reset.
Fix issue because of which library with enabled but not configured crypto didn't return message
from `pubnub_get_v2`.
Copy link
Contributor

@KGronek-Pubnub KGronek-Pubnub left a comment

Choose a reason for hiding this comment

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

Everything looks good to me, compiles well on Windows :)

@parfeon
Copy link
Contributor Author

parfeon commented Nov 25, 2024

@pubnub-release-bot release

@parfeon parfeon merged commit eb84d56 into master Nov 25, 2024
5 checks passed
@parfeon parfeon deleted the CLEN-2287 branch November 25, 2024 21:51
@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
priority: medium This PR should be reviewed after all high priority PRs. status: done This issue is considered resolved. type: feature This PR contains new feature.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants