Skip to content

Commit

Permalink
fix(subscribe): fix matched field parse in subscribe response
Browse files Browse the repository at this point in the history
Fixed issue because of which `matched` field had wrong value and length.

fix(event-engine): fix consequential subscribe invocations

In certain situations, Event Engine contained invocations which held outdated data and
shouldn't be called.

refactor(demo): completed subscribe event engine and listeners sample application
  • Loading branch information
parfeon committed Oct 14, 2024
1 parent 22490e1 commit 96cb100
Show file tree
Hide file tree
Showing 28 changed files with 1,126 additions and 355 deletions.
13 changes: 8 additions & 5 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -60,9 +60,9 @@ num_option(ONLY_PUBSUB_API "Only pubsub API" OFF)
num_option(USE_PROXY "Use proxy" ON)
num_option(USE_GZIP_COMPRESSION "Use gzip compression" ON)
num_option(RECEIVE_GZIP_RESPONSE "Use gzip decompression" ON)
num_option(USE_RETRY_CONFIGURATION "Use requests retry" ON)
num_option(USE_RETRY_CONFIGURATION "Use requests retry" OFF)
num_option(USE_SUBSCRIBE_V2 "Use subscribe v2" ON)
num_option(USE_SUBSCRIBE_EVENT_ENGINE "Use Subscribe Event Engine" ON)
num_option(USE_SUBSCRIBE_EVENT_ENGINE "Use Subscribe Event Engine" OFF)
num_option(USE_ADVANCED_HISTORY "Use advanced history" ON)
num_option(USE_OBJECTS_API "Use objects API" ON)
num_option(USE_AUTO_HEARTBEAT "Use auto heartbeat" ON)
Expand Down Expand Up @@ -529,8 +529,7 @@ set(SOURCEFILES
${LIB_SOURCEFILES}
${OS_SOURCEFILES}
${FEATURE_SOURCEFILES}
${INTF_SOURCEFILES}
core/samples/subscribe_event_engine_sample.c)
${INTF_SOURCEFILES})

if(NOT ESP_PLATFORM)
if(${SHARED_LIB})
Expand Down Expand Up @@ -708,9 +707,13 @@ if(${EXAMPLES})
pubnub_callback_subloop_sample
subscribe_publish_callback_sample
subscribe_publish_from_callback
subscribe_event_engine_sample
publish_callback_subloop_sample
publish_queue_callback_subloop)
if(${USE_SUBSCRIBE_EVENT_ENGINE})
set(EXAMPLE_LIST
subscribe_event_engine_sample
${EXAMPLE_LIST})
endif()
if (WITH_CPP)
set(CPP_EXAMPLE_LIST
subscribe_publish_callback_sample # Only supports callback!
Expand Down
Loading

0 comments on commit 96cb100

Please sign in to comment.