Event is emitted when a new supply or demand object is received.
Event is emitted when:
Event is emitted when a new match is found.
Event is emitted when:
Event emitted when matching data is updated.
Static
Readonly
channelThis function changes the status of a Demand from active to inactive or the other way depending on the actual status of the tag and the user clicking on it.
The old version of the Demand object will be deleted from memory and oly the new version will be remembered.
This function changes the status of a Supply from active to inactive or the other way depending on the actual status of the tag and the user clicking on it.
The old version of the Supply object will be deleted from memory and oly the new version will be remembered.
Returns the array with all existing matches for this instance.
read the matching server details from the json file and memorise the corresponding Contact object in order to establish a connection with it.
initialise application resources (all maps that are used to memorising the data) and load the instance information in memory.
start the channels and add listeners for specific objects
share the channel with the matching server
Inheriting the common behaviour from the Matching Model class, this class implements the specific behaviour for the client of the matching server.
The identity of the matching server is read from the json file and the Contact object is memorised in order to establish a connection between the client and the server.
Description
Client Matching Model class