Skip to content

Commit 63e13af

Browse files
Amy Yanaddievo
Amy Yan
authored andcommitted
# This is a combination of 16 commits.
# This is the 1st commit message: fix: RPCServer.start is now no longer a factory function fix: fixed RPC tests after async-init change # This is the commit message #2: chore: updated inline documentation according to async-init changes # This is the commit message #3: wip: fixing imports # This is the commit message #4: wip: RPCServer deconstruction # This is the commit message #5: fix: RPCServer start stop order # This is the commit message #6: fix: added back createDestroy back to RPCClient # This is the commit message #7: chore: lintfix # This is the commit message #8: wip: completely removed create destroy from rpcclient # This is the commit message #9: fix: RPCClient tests after async-init changes # This is the commit message #10: wip # This is the commit message #11: fix: idgen is optional in constructor # This is the commit message #12: fix: type import in ./types # This is the commit message #13: chore: test for RPCServer force stopping # This is the commit message #14: fix: proper implementation of fromError toError, clientOutputTransformStream no longer outputs error.data, but rather error directly # This is the commit message #15: fix: jest fix for ErrorRPCRemote # This is the commit message #16: wip toError fromError fix: proper implementation of fromError toError, clientOutputTransformStream no longer outputs error.data, but rather error directly fix: changed rpcClient toError implementation fix: changing ErrorRPCRemote constructor to be in-line with toError error creation constructor fix: jest fix for ErrorRPCRemote fix: fixing exports fix: RPC errors now correctly extend AbstractError fix: removed old events fix: cleaned up imports feat: client has toError as parameter fix: removed type from JSONError obj fix: startStop constructor correctly used fix: infinity is definitely not == 1 minute chore: rename variable
1 parent 578ed40 commit 63e13af

File tree

156 files changed

+6809
-9874
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

156 files changed

+6809
-9874
lines changed

README.md

+178-332

docs/assets/highlight.css

+51-2
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,22 @@
77
--dark-hl-2: #CE9178;
88
--light-hl-3: #0000FF;
99
--dark-hl-3: #569CD6;
10-
--light-hl-4: #008000;
11-
--dark-hl-4: #6A9955;
10+
--light-hl-4: #AF00DB;
11+
--dark-hl-4: #C586C0;
12+
--light-hl-5: #001080;
13+
--dark-hl-5: #9CDCFE;
14+
--light-hl-6: #008000;
15+
--dark-hl-6: #6A9955;
16+
--light-hl-7: #0070C1;
17+
--dark-hl-7: #4FC1FF;
18+
--light-hl-8: #267F99;
19+
--dark-hl-8: #4EC9B0;
20+
--light-hl-9: #000000;
21+
--dark-hl-9: #C8C8C8;
22+
--light-hl-10: #098658;
23+
--dark-hl-10: #B5CEA8;
24+
--light-hl-11: #000000FF;
25+
--dark-hl-11: #D4D4D4;
1226
--light-code-background: #FFFFFF;
1327
--dark-code-background: #1E1E1E;
1428
}
@@ -19,6 +33,13 @@
1933
--hl-2: var(--light-hl-2);
2034
--hl-3: var(--light-hl-3);
2135
--hl-4: var(--light-hl-4);
36+
--hl-5: var(--light-hl-5);
37+
--hl-6: var(--light-hl-6);
38+
--hl-7: var(--light-hl-7);
39+
--hl-8: var(--light-hl-8);
40+
--hl-9: var(--light-hl-9);
41+
--hl-10: var(--light-hl-10);
42+
--hl-11: var(--light-hl-11);
2243
--code-background: var(--light-code-background);
2344
} }
2445

@@ -28,6 +49,13 @@
2849
--hl-2: var(--dark-hl-2);
2950
--hl-3: var(--dark-hl-3);
3051
--hl-4: var(--dark-hl-4);
52+
--hl-5: var(--dark-hl-5);
53+
--hl-6: var(--dark-hl-6);
54+
--hl-7: var(--dark-hl-7);
55+
--hl-8: var(--dark-hl-8);
56+
--hl-9: var(--dark-hl-9);
57+
--hl-10: var(--dark-hl-10);
58+
--hl-11: var(--dark-hl-11);
3159
--code-background: var(--dark-code-background);
3260
} }
3361

@@ -37,6 +65,13 @@
3765
--hl-2: var(--light-hl-2);
3866
--hl-3: var(--light-hl-3);
3967
--hl-4: var(--light-hl-4);
68+
--hl-5: var(--light-hl-5);
69+
--hl-6: var(--light-hl-6);
70+
--hl-7: var(--light-hl-7);
71+
--hl-8: var(--light-hl-8);
72+
--hl-9: var(--light-hl-9);
73+
--hl-10: var(--light-hl-10);
74+
--hl-11: var(--light-hl-11);
4075
--code-background: var(--light-code-background);
4176
}
4277

@@ -46,6 +81,13 @@
4681
--hl-2: var(--dark-hl-2);
4782
--hl-3: var(--dark-hl-3);
4883
--hl-4: var(--dark-hl-4);
84+
--hl-5: var(--dark-hl-5);
85+
--hl-6: var(--dark-hl-6);
86+
--hl-7: var(--dark-hl-7);
87+
--hl-8: var(--dark-hl-8);
88+
--hl-9: var(--dark-hl-9);
89+
--hl-10: var(--dark-hl-10);
90+
--hl-11: var(--dark-hl-11);
4991
--code-background: var(--dark-code-background);
5092
}
5193

@@ -54,4 +96,11 @@
5496
.hl-2 { color: var(--hl-2); }
5597
.hl-3 { color: var(--hl-3); }
5698
.hl-4 { color: var(--hl-4); }
99+
.hl-5 { color: var(--hl-5); }
100+
.hl-6 { color: var(--hl-6); }
101+
.hl-7 { color: var(--hl-7); }
102+
.hl-8 { color: var(--hl-8); }
103+
.hl-9 { color: var(--hl-9); }
104+
.hl-10 { color: var(--hl-10); }
105+
.hl-11 { color: var(--hl-11); }
57106
pre, code { background: var(--code-background); }

docs/assets/search.js

+1-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/classes/callers.Caller.html docs/classes/Caller.html

+23-27
Large diffs are not rendered by default.

docs/classes/callers.ClientCaller.html docs/classes/ClientCaller.html

+22-26
Large diffs are not rendered by default.

docs/classes/handlers.ClientHandler.html docs/classes/ClientHandler.html

+31-35
Large diffs are not rendered by default.

docs/classes/callers.DuplexCaller.html docs/classes/DuplexCaller.html

+22-26
Large diffs are not rendered by default.

docs/classes/handlers.DuplexHandler.html docs/classes/DuplexHandler.html

+48-52
Large diffs are not rendered by default.

docs/classes/handlers.Handler.html docs/classes/Handler.html

+26-30
Large diffs are not rendered by default.

docs/classes/RPCClient.html

+108-278
Large diffs are not rendered by default.

docs/classes/RPCServer.html

+123-225
Large diffs are not rendered by default.

docs/classes/callers.RawCaller.html docs/classes/RawCaller.html

+20-24
Large diffs are not rendered by default.

docs/classes/handlers.RawHandler.html docs/classes/RawHandler.html

+31-35
Large diffs are not rendered by default.

docs/classes/callers.ServerCaller.html docs/classes/ServerCaller.html

+22-26
Large diffs are not rendered by default.

docs/classes/handlers.ServerHandler.html docs/classes/ServerHandler.html

+48-52
Large diffs are not rendered by default.

docs/classes/callers.UnaryCaller.html docs/classes/UnaryCaller.html

+22-26
Large diffs are not rendered by default.

docs/classes/handlers.UnaryHandler.html docs/classes/UnaryHandler.html

+31-35
Large diffs are not rendered by default.

docs/classes/errors.ErrorHandlerAborted.html

+54-58
Large diffs are not rendered by default.

docs/classes/errors.ErrorMissingCaller.html

+54-58
Large diffs are not rendered by default.

docs/classes/errors.ErrorMissingHeader.html

+54-58
Large diffs are not rendered by default.

docs/classes/errors.ErrorRPC.html

+34-88
Large diffs are not rendered by default.

docs/classes/errors.ErrorRPCCallerFailed.html

+54-58
Large diffs are not rendered by default.

docs/classes/errors.ErrorRPCConnectionInternal.html

+51-50
Large diffs are not rendered by default.

docs/classes/errors.ErrorRPCConnectionKeepAliveTimeOut.html

+51-50
Large diffs are not rendered by default.

docs/classes/errors.ErrorRPCConnectionLocal.html

+51-50
Large diffs are not rendered by default.

docs/classes/errors.ErrorRPCConnectionPeer.html

+51-50
Large diffs are not rendered by default.

docs/classes/errors.ErrorRPCHandlerFailed.html

+54-58
Large diffs are not rendered by default.

docs/classes/errors.ErrorRPCMessageLength.html

+51-50
Large diffs are not rendered by default.

docs/classes/errors.ErrorRPCMethodNotImplemented.html

+58-57
Large diffs are not rendered by default.

docs/classes/errors.ErrorRPCMissingResponse.html

+58-57
Large diffs are not rendered by default.

docs/classes/errors.ErrorRPCOutputStreamError.html

+57-58
Large diffs are not rendered by default.

docs/classes/errors.ErrorRPCParse.html

+51-55
Large diffs are not rendered by default.

docs/classes/errors.ErrorRPCProtocol.html

+337
Large diffs are not rendered by default.

docs/classes/errors.ErrorRPCRemote.html

+50-55
Large diffs are not rendered by default.

docs/classes/errors.ErrorRPCDestroyed.html docs/classes/errors.ErrorRPCServer.html

+57-80
Large diffs are not rendered by default.

docs/classes/errors.ErrorRPCServerNotRunning.html

+296
Large diffs are not rendered by default.

docs/classes/errors.ErrorRPCStopping.html

+58-57
Large diffs are not rendered by default.

docs/classes/errors.ErrorRPCStreamEnded.html

+54-58
Large diffs are not rendered by default.

docs/classes/errors.ErrorRPCTimedOut.html

+54-58
Large diffs are not rendered by default.

docs/classes/errors.ErrorUtilsUndefinedBehaviour.html

+58-57
Large diffs are not rendered by default.

docs/classes/events.EventRPC.html

-428
This file was deleted.

docs/classes/events.EventRPCClient.html

+3-13
Original file line numberDiff line numberDiff line change
@@ -26,16 +26,9 @@ <h4>Hierarchy</h4>
2626
<ul class="tsd-hierarchy">
2727
<li><span class="tsd-signature-type">AbstractEvent</span><span class="tsd-signature-symbol">&lt;</span><span class="tsd-signature-type" data-tsd-kind="Type parameter">T</span><span class="tsd-signature-symbol">&gt;</span>
2828
<ul class="tsd-hierarchy">
29-
<li><span class="target">EventRPCClient</span>
30-
<ul class="tsd-hierarchy">
31-
<li><a href="events.EventRPCClientDestroy.html" class="tsd-signature-type" data-tsd-kind="Class">EventRPCClientDestroy</a></li>
32-
<li><a href="events.EventRPCClientDestroyed.html" class="tsd-signature-type" data-tsd-kind="Class">EventRPCClientDestroyed</a></li>
33-
<li><a href="events.EventRPCClientCreate.html" class="tsd-signature-type" data-tsd-kind="Class">EventRPCClientCreate</a></li>
34-
<li><a href="events.EventRPCClientCreated.html" class="tsd-signature-type" data-tsd-kind="Class">EventRPCClientCreated</a></li>
35-
<li><a href="events.EventRPCClientError.html" class="tsd-signature-type" data-tsd-kind="Class">EventRPCClientError</a></li>
36-
<li><a href="events.EventRPCClientConnect.html" class="tsd-signature-type" data-tsd-kind="Class">EventRPCClientConnect</a></li></ul></li></ul></li></ul></section><aside class="tsd-sources">
37-
<ul>
38-
<li>Defined in <a href="https://github.com/MatrixAI/js-rpc/blob/master/src/events.ts#L14">src/events.ts:14</a></li></ul></aside>
29+
<li><span class="target">EventRPCClient</span></li></ul></li></ul></section><aside class="tsd-sources">
30+
<ul>
31+
<li>Defined in <a href="https://github.com/MatrixAI/js-rpc/blob/master/src/events.ts#L10">src/events.ts:10</a></li></ul></aside>
3932
<section class="tsd-panel-group tsd-index-group">
4033
<section class="tsd-panel tsd-index-panel">
4134
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
@@ -389,12 +382,9 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
389382
<ul>
390383
<li class="current"><a href="../modules.html">@matrixai/rpc</a>
391384
<ul>
392-
<li class="tsd-kind-namespace"><a href="../modules/callers.html">callers</a></li>
393385
<li class="tsd-kind-namespace"><a href="../modules/errors.html">errors</a></li>
394386
<li class="current tsd-kind-namespace"><a href="../modules/events.html">events</a></li>
395-
<li class="tsd-kind-namespace"><a href="../modules/handlers.html">handlers</a></li>
396387
<li class="tsd-kind-namespace"><a href="../modules/middleware.html">middleware</a></li>
397-
<li class="tsd-kind-namespace"><a href="../modules/types.html">types</a></li>
398388
<li class="tsd-kind-namespace"><a href="../modules/utils.html">utils</a></li></ul></li></ul></div></details></nav>
399389
<nav class="tsd-navigation secondary menu-sticky">
400390
<ul>

0 commit comments

Comments
 (0)