Client¶
-
class
darwinpush.Client(stomp_user, stomp_password, stomp_queue, listener)[source]¶ The object that acts as the Client to the National Rail enquries Darwin Push Port STOMP server.
You should instantiate an instance of this object, with the required parameters to act as the client to the Darwin Push Port. Listeners registered with this object will be passed messages that are received from the server once they have been turned into the relevant python object.
- Args:
- stomp_user: Your STOMP user name taken from the National Rail Open Data portal. stomp_password: Your STOMP password taken from the National Rail Open Data portal. stomp_queue: Your STOMP queue name taken from the National Rail Open Data portal. listener: The class object (not an instance of it) for your Listener subclass.