Add streaming direct support
This commit is contained in:
parent
eb26687c84
commit
bf42b86b9f
3 changed files with 46 additions and 0 deletions
|
@ -164,3 +164,8 @@ func (c *Client) StreamingList(ctx context.Context, id ID) (chan Event, error) {
|
|||
|
||||
return c.streaming(ctx, "list", params)
|
||||
}
|
||||
|
||||
// StreamingDirect return channel to read events on a direct messages.
|
||||
func (c *Client) StreamingDirect(ctx context.Context) (chan Event, error) {
|
||||
return c.streaming(ctx, "direct", nil)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue