Add streaming direct support

This commit is contained in:
WaybackBot 2021-02-25 14:26:45 +00:00 committed by mattn
parent eb26687c84
commit bf42b86b9f
3 changed files with 46 additions and 0 deletions

View file

@ -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)
}