Commit b3385ff
committed
fix: make maxReconnectAttempts opt-in, fix test hello-ok response shape
Address ClawSweeper review feedback:
- P2: Make reconnect cap opt-in via maxReconnectAttempts option.
Undefined = unlimited, preserving node-host unbounded retry behavior.
- P3: Fix reset test to send proper type:"res" with payload.type:"hello-ok"
instead of type:"connect" so handleMessage actually processes it.1 parent 71c3132 commit b3385ff
2 files changed
Lines changed: 17 additions & 12 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1011 | 1011 | | |
1012 | 1012 | | |
1013 | 1013 | | |
| 1014 | + | |
1014 | 1015 | | |
1015 | 1016 | | |
1016 | 1017 | | |
| |||
1056 | 1057 | | |
1057 | 1058 | | |
1058 | 1059 | | |
| 1060 | + | |
1059 | 1061 | | |
1060 | 1062 | | |
1061 | 1063 | | |
| |||
1071 | 1073 | | |
1072 | 1074 | | |
1073 | 1075 | | |
| 1076 | + | |
| 1077 | + | |
| 1078 | + | |
1074 | 1079 | | |
1075 | 1080 | | |
1076 | | - | |
1077 | | - | |
| 1081 | + | |
| 1082 | + | |
1078 | 1083 | | |
1079 | | - | |
1080 | | - | |
1081 | | - | |
1082 | | - | |
1083 | | - | |
1084 | | - | |
| 1084 | + | |
| 1085 | + | |
| 1086 | + | |
| 1087 | + | |
| 1088 | + | |
1085 | 1089 | | |
1086 | 1090 | | |
1087 | 1091 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
160 | 160 | | |
161 | 161 | | |
162 | 162 | | |
| 163 | + | |
| 164 | + | |
163 | 165 | | |
164 | 166 | | |
165 | 167 | | |
| |||
925 | 927 | | |
926 | 928 | | |
927 | 929 | | |
928 | | - | |
929 | | - | |
930 | 930 | | |
931 | 931 | | |
932 | 932 | | |
933 | 933 | | |
934 | | - | |
| 934 | + | |
| 935 | + | |
935 | 936 | | |
936 | 937 | | |
937 | 938 | | |
938 | 939 | | |
939 | | - | |
| 940 | + | |
940 | 941 | | |
941 | 942 | | |
942 | 943 | | |
| |||
0 commit comments