In case my javascript library needs to support multiple underlying transport methods but expose a consistent interface for the applications, then what would be a good design pattern? Multiple transports could include HTTP, websocket etc. Is there any any pattern which can abstract all this and provide a consistent interface?
Aucun commentaire:
Enregistrer un commentaire