Skip to main content

StreamEventCallback

Type Alias StreamEventCallback 

Source
pub type StreamEventCallback = unsafe extern "C" fn(event_json: *mut c_char, user_data: *mut c_void);
Expand description

Stream-style callback that fires for each event in an ongoing subscription.

event_json is a heap-owned JSON-encoded event payload (caller-owned).