can-connect is primarily used to connect some form of typed data to
a service layer. For example, the typed data might be a
Todo with methods
todo.complete() and the service layer might be a RESTful URL like
Typed data, with methods, validation, type coercion, and other logic is very useful to a client side developer. However, a service layer doesn't provide this functionality, instead it just provides raw data.
can-connect is used to bridge the gap between typed data and the
raw data provided by the server.
Instance represents some form of typed data. For example,
Instance might represent an instance of the
Todo type in the example above.
The can-connect/constructor/constructor behavior is primarily responsible for providing methods that go back and forth between instances and raw data. Other behaviors like can-connect/can/map/map extend this functionality.