go-zeromq / zmq4

[WIP] Pure-Go implementation of ZeroMQ-4
BSD 3-Clause "New" or "Revised" License
341 stars 56 forks source link

subSocket.Topics() is not accessible #138

Open shanduur opened 1 year ago

shanduur commented 1 year ago

As the NewSub returns interface, and subSocket is not exported, the Topics() function is not accessible.

NewSub:

https://github.com/go-zeromq/zmq4/blob/2ae93282ddb8e2eaaf323158af66d74ddc8c3b38/sub.go#L16

Topics:

https://github.com/go-zeromq/zmq4/blob/2ae93282ddb8e2eaaf323158af66d74ddc8c3b38/sub.go#L120-L129