-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Simpler, more consistent design. Uses several queues (private messages, room messages and broadcasts). Sent messages are always echoed back. This allows real time updates when using multiple clients at the same time. Enable SockJS if some client wants to use it.
- Loading branch information
Showing
24 changed files
with
539 additions
and
204 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
28 changes: 28 additions & 0 deletions
28
app/src/main/java/io/xeres/app/api/controller/chat/doc-files/websocket.puml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
@startuml | ||
'https://plantuml.com/component-diagram | ||
|
||
|
||
package "UI Client" { | ||
component producer #Cyan [ | ||
Producer | ||
/app/chat/private | ||
] | ||
component consumer #Cyan [ | ||
Consumer | ||
/topic/chat/private | ||
] | ||
} | ||
|
||
package "App Server" { | ||
[MessageHandler] #Green | ||
} | ||
|
||
cloud "RS Network" { | ||
[Friend] | ||
} | ||
|
||
[producer] --> [MessageHandler] : /app | ||
[MessageHandler] --> [consumer] : /topic | ||
[MessageHandler] <-> [Friend] | ||
|
||
@enduml |
67 changes: 67 additions & 0 deletions
67
app/src/main/java/io/xeres/app/api/controller/chat/doc-files/websocket.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.