Skip to content

Commit e871199

Browse files
authored
Merge pull request #69 from Dinnerbone/fix_pubsub
PubSub bug fixes
2 parents 54452a2 + 96b8036 commit e871199

File tree

2 files changed

+8
-2
lines changed

2 files changed

+8
-2
lines changed

src/pubsub/channel_points.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ pub struct Reward {
7575
pub background_color: String,
7676
/// ID of channel where the redemption was triggered
7777
pub channel_id: types::UserId,
78-
/// Cooldown will expire after this many seconds have passed from pubsub message
79-
pub cooldown_expires_at: Option<u64>,
78+
/// Cooldown will expire after this timestamp
79+
pub cooldown_expires_at: Option<types::Timestamp>,
8080
/// Cost of reward.
8181
pub cost: u32,
8282
/// Default image of reward in rewards & challenges screen on client

src/pubsub/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -531,6 +531,12 @@ pub enum Response {
531531
/// Data corresponding to [topic](Topic) message
532532
data: TopicData,
533533
},
534+
/// Response from a ping
535+
#[serde(rename = "PONG")]
536+
Pong,
537+
/// Request for the client to reconnect
538+
#[serde(rename = "RECONNECT")]
539+
Reconnect,
534540
}
535541

536542
impl Response {

0 commit comments

Comments
 (0)