Commit a1844f8
committed
Implemented Error Generation, Reporting, and Handling see #8
*Define custom error codes
*generate errors and propagate them to the subscribers (client or server)
*The client subscriber must override the "Handle Last Ack Core" method and from that extract the error of the client shutting down
*The subscriber of the server must override the "Handle Error" method to catch the specific errors*
* If an unknown error leads to an invalid Listener reference the server will now shutdown, because it would then kill possibly working connections to clients, but it will stop accepting definitions of new services by throwing a specific error1 parent 72caf66 commit a1844f8
18 files changed
Lines changed: 160 additions & 32 deletions
File tree
- WebSocket Actor
- WebSocket Connection
- WebSocket Server Manager
- WebSocket Server Messages/Write Listener Down Msg
- WebSocket Server
- WebSocket Service
Binary file not shown.
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | | - | |
| 2 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
23 | 23 | | |
24 | 24 | | |
25 | 25 | | |
| 26 | + | |
26 | 27 | | |
27 | 28 | | |
28 | 29 | | |
29 | 30 | | |
30 | 31 | | |
31 | 32 | | |
| 33 | + | |
32 | 34 | | |
33 | 35 | | |
34 | 36 | | |
35 | 37 | | |
36 | 38 | | |
37 | 39 | | |
38 | 40 | | |
| 41 | + | |
39 | 42 | | |
40 | 43 | | |
41 | 44 | | |
| |||
61 | 64 | | |
62 | 65 | | |
63 | 66 | | |
| 67 | + | |
64 | 68 | | |
65 | 69 | | |
| 70 | + | |
66 | 71 | | |
67 | 72 | | |
68 | 73 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| 49 | + | |
49 | 50 | | |
50 | 51 | | |
51 | 52 | | |
| |||
Binary file not shown.
Binary file not shown.
Lines changed: 27 additions & 13 deletions
Large diffs are not rendered by default.
Binary file not shown.
Binary file not shown.
Lines changed: 49 additions & 0 deletions
Large diffs are not rendered by default.
0 commit comments