I am currently working on a Web Application. One of the objectives is to use the MVP (Model View Presentation) Design Pattern. We would like to use WebSockets to communicate between client and the server.
My question is: Do I have to put the code for WebSocket handling in the Presentation, or would it be better to put it in the Model? Or none of these propositions?
Since WebSockets are about communication I would tend to put it in Presentation but would like to know your opinion.
I know this question is kind of opinion based, but using design pattern and "smelling" when we have to use them is all about opinion and judgement, that is why I would like to ask you this question.
One of the objectives is to use the MVP (Model View Presentation) Design Pattern.-- Why? Design patterns are not objectives. The problems you're trying to solve with them are. What problems are you trying to solve by using MVP?