这是indexloc提供的服务,不要输入任何密码
Skip to content

v0.7.2

Compare
Choose a tag to compare
@hgiasac hgiasac released this 05 Jul 06:34
· 59 commits to master since this release
7e9cc29

This version focuses on subscription fixes and improvements (#39)

  • Fix the deadlock issue that the subscription client can't receive error events from the channel.
  • Close the connection when there is no running subscription
  • add a particular error that stops the subscription inside the callback
subscriptionId, err := client.Subscribe(&query, nil, func(dataValue *json.RawMessage, errValue error) error {
	// ...
	// return this error to stop the subscription in the callback
	return ErrSubscriptionStopped
})