webthing/thing.py
def property_notify(self, property_):
        """
        Notify all subscribers of a property change.

        property_ -- the property that changed
        """
        message = json.dumps({
            'messageType': 'propertyStatus',
            'data': {
                property_.name: property_.get_value(),
            }
        })

        for subscriber in list(self.subscribers):
            try:
                subscriber.write_message(message)
            except tornado.websocket.WebSocketClosedError:
                pass
def property_notify(self, property_):
        """
        Notify all subscribers of a property change.

        property_ -- the property that changed
        """
        message = json.dumps({
            'messageType': 'propertyStatus',
            'data': {
                property_.name: property_.get_value(),
            }
        })

        for subscriber in list(self.subscribers):
            try:
                subscriber.write_message(message)
            except tornado.websocket.WebSocketClosedError:
                pass
def property_notify ( self , property_ ) : message = json . dumps ( { 'messageType' : 'propertyStatus' , 'data' : { property_ . name : property_ . get_value ( ) , } } ) for subscriber in list ( self . subscribers ) : try : subscriber . write_message ( message ) except tornado . websocket . WebSocketClosedError : pass
Notify all subscribers of a property change.

        property_ -- the property that changed
Notify all subscribers of a property change .