# Stubs for txzmq.pubsub (Python 3)
#
# NOTE: This dynamically typed stub was automatically generated by stubgen.
from txzmq.connection import ZmqConnection
from typing import Any
class ZmqPubConnection(ZmqConnection):
socketType: Any = ...
def publish(self, message: Any, tag: bytes = ...) -> None: ...
class ZmqSubConnection(ZmqConnection):
socketType: Any = ...
def subscribe(self, tag: Any) -> None: ...
def unsubscribe(self, tag: Any) -> None: ...
def messageReceived(self, message: Any) -> None: ...
def gotMessage(self, message: Any, tag: Any) -> None: ...