<s> from __future__ import absolute_import <EOL> from __future__ import division <EOL> from __future__ import print_function <EOL> from ddp . messages . pong_message import PongMessage <EOL> from . subscriber import Subscriber <EOL> from . topics import MessageReceivedPing , MessageSendPong <EOL> __all__ = [ '<STR_LIT>' ] <EOL> class Ponger ( Subscriber ) : <EOL> def __init__ ( self , board ) : <EOL> super ( Ponger , self ) . __init__ ( board , <EOL> { MessageReceivedPing : self . _on_ping } ) <EOL> self . _board = board <EOL> def _on_ping ( self , topic , message ) : <EOL> self . _board . publish ( MessageSendPong , PongMessage ( id = message . id ) ) </s>
