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

Conversation

@luclmt
Copy link
Contributor

@luclmt luclmt commented Apr 5, 2022

subscribe to topic and receive data via websocket

func New() *Clients {

manager := new(SseCLients)
manager := new(Clients)
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you can avoid the new

c := Clients{}

return &c

Id string
Data SseClientData
const (
SseClient ClientType = 1
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

add in the main the flags to setup this features.

@freedreamer82 freedreamer82 merged commit b19197e into freedreamer82:master Apr 5, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants