* Websocket implementation * Websocket implementation with Akka Streams * Websocket implementation with Akka Streams * Websocket implementation with Akka Streams * Added configuration options for play server timeout and websocket frame lengths * Cleaned up code for consuming http endpoint in Messenger actor * Cleaned up code for consuming http endpoint in Messenger actor * Cleaned up code for akka streams implementation for websocket * Renamed unit test method * Added Poison Pill for stopping the actor. Fixed indentations. * Refactored the WebSocket method for readability * Refactored the JavaScript for readability * Code refactoring and removing unwanted comments * Added the latest version of jQuery * Removed .gitignore in favor of the one at the project root
		
			
				
	
	
		
			61 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
			
		
		
	
	
			61 lines
		
	
	
		
			1.1 KiB
		
	
	
	
		
			Java
		
	
	
	
	
	
| package dto;
 | |
| 
 | |
| public class MessageDTO {
 | |
|     private String userId;
 | |
|     private String id;
 | |
|     private String title;
 | |
|     private String body;
 | |
| 
 | |
|     public MessageDTO() {
 | |
|     }
 | |
| 
 | |
|     public MessageDTO(String userId, String id, String title, String body) {
 | |
|         this.userId = userId;
 | |
|         this.id = id;
 | |
|         this.title = title;
 | |
|         this.body = body;
 | |
|     }
 | |
| 
 | |
|     public String getUserId() {
 | |
|         return userId;
 | |
|     }
 | |
| 
 | |
|     public void setUserId(String userId) {
 | |
|         this.userId = userId;
 | |
|     }
 | |
| 
 | |
|     public String getId() {
 | |
|         return id;
 | |
|     }
 | |
| 
 | |
|     public void setId(String id) {
 | |
|         this.id = id;
 | |
|     }
 | |
| 
 | |
|     public String getTitle() {
 | |
|         return title;
 | |
|     }
 | |
| 
 | |
|     public void setTitle(String title) {
 | |
|         this.title = title;
 | |
|     }
 | |
| 
 | |
|     public String getBody() {
 | |
|         return body;
 | |
|     }
 | |
| 
 | |
|     public void setBody(String body) {
 | |
|         this.body = body;
 | |
|     }
 | |
| 
 | |
|     @Override
 | |
|     public String toString() {
 | |
|         return "MessageDTO{" +
 | |
|                 "userId='" + userId + '\'' +
 | |
|                 ", id='" + id + '\'' +
 | |
|                 ", title='" + title + '\'' +
 | |
|                 ", body='" + body + '\'' +
 | |
|                 '}';
 | |
|     }
 | |
| }
 |