mirror of
https://github.com/avatao-content/baseimage-tutorial-framework
synced 2024-11-26 05:01:32 +00:00
Rename server_connector to uplink
This commit is contained in:
parent
aafd145fc5
commit
f94c5b0c37
@ -6,7 +6,7 @@ class MessageSender:
|
|||||||
Provides mechanisms to send messages to our frontend messaging component.
|
Provides mechanisms to send messages to our frontend messaging component.
|
||||||
"""
|
"""
|
||||||
def __init__(self):
|
def __init__(self):
|
||||||
self.server_connector = TFWServerUplinkConnector()
|
self.uplink = TFWServerUplinkConnector()
|
||||||
self.key = 'message'
|
self.key = 'message'
|
||||||
self.queue_key = 'queueMessages'
|
self.queue_key = 'queueMessages'
|
||||||
|
|
||||||
@ -23,7 +23,7 @@ class MessageSender:
|
|||||||
'message': message
|
'message': message
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
self.server_connector.send_message(message)
|
self.uplink.send_message(message)
|
||||||
|
|
||||||
def queue_messages(self, originator, messages):
|
def queue_messages(self, originator, messages):
|
||||||
"""
|
"""
|
||||||
@ -40,7 +40,7 @@ class MessageSender:
|
|||||||
]
|
]
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
self.server_connector.send_message(message)
|
self.uplink.send_message(message)
|
||||||
|
|
||||||
@staticmethod
|
@staticmethod
|
||||||
def generate_messages_from_queue(queue_message):
|
def generate_messages_from_queue(queue_message):
|
||||||
|
Loading…
Reference in New Issue
Block a user