Skip to content

Releases: emitter-io/go

v2.1.0

16 Sep 12:56
5ff9ad7
Compare
Choose a tag to compare

What's Changed

Adds the API for the History feature by @Florimond in #37

The History feature was introduced in emitter-io/emitter#414 and allows to retrieve any number of stored messages from a channel between two points in time. The response from the server can be paginated.
To consume these messages, I decided to use the iterator feature from the latest version of Go, 1.23. Thus, retrieving the messages can be done using a simple range loop like so:

for messageHistory, err := range c.History("JN8kaVOZQtG-G6QHnbFzcI-uyS_M3L5q", "test/", 1685608812, 1757293928, 5) {
	if err != nil {
		//...
	}
	fmt.Println(messageHistory)
}

Where the 3rd and 4th parameters are two timestamps, and the 5th is the maximum number of messages you'd like to receive between these two timestamps.

New Contributors

Full Changelog: v2.0.9...v2.1.0

v2.0.9

25 May 09:22
Compare
Choose a tag to compare
added keyban

v2.0.8

23 May 13:02
df7bdf8
Compare
Choose a tag to compare
Merge pull request #25 from emitter-io/remove-private-links

Private links now disappeared to make place for private channels

v2.0.7

16 May 11:29
Compare
Choose a tag to compare
added test

v2.0.6

16 May 11:17
Compare
Choose a tag to compare
Merge branch 'master' of https://github.com/emitter-io/go

v2.0.5

07 Dec 02:38
540049c
Compare
Choose a tag to compare
Create FUNDING.yml

v2.0.4

03 Mar 11:33
Compare
Choose a tag to compare
fix retain publish with options

v2.0.3

02 Mar 01:49
Compare
Choose a tag to compare
v2

v1.0.0

01 Mar 12:54
Compare
Choose a tag to compare
handler for private links