-
-
Notifications
You must be signed in to change notification settings - Fork 2.2k
FAQ
shedokan edited this page Dec 8, 2015
·
14 revisions
Make sure to include YowIqProtocolLayer
in your stack, this layer handles the ping mesages like this:
# *snip*
from yowsup.layers.protocol_iq import YowIqProtocolLayer
# *snip*
layers = (
YourLayer,
YowParallelLayer(YowAuthenticationProtocolLayer, YowMessagesProtocolLayer, YowIqProtocolLayer, YowReceiptProtocolLayer, YowAckProtocolLayer),
) + YOWSUP_CORE_LAYERS
# *snip*
stack = YowStack(layers)
# *snip*
TODO