Documentation ¶
Index ¶
Constants ¶
View Source
const (
DataEndpoint = "/relay/v1/data/events/realtime"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*settings)
func WithContext ¶
WithContext is used to provide a specific external context to the client subscription.
func WithSSEClientOptions ¶
func WithSSEClientOptions(opts ...func(c *sse.Client)) Option
WithSSEClientOptions is used to customize SSE Client.
func WithTopics ¶
WithTopics is used to provide which topics to listen to.
type SSEClient ¶
type SSEClient struct {
// contains filtered or unexported fields
}
SSEClient encapsulates sse.Client and stores the topic to listen to on the Flashbots Relayer.
func New ¶
New creates an SSE client listening to the SSE endpoint on the provided relay. It stores the topics to listen to later on.
func (*SSEClient) Unsubscribe ¶
func (c *SSEClient) Unsubscribe()
Click to show internal directories.
Click to hide internal directories.