Skip to content

Commit

Permalink
# This is a combination of 16 commits.
Browse files Browse the repository at this point in the history
# 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
  • Loading branch information
Amy Yan authored and addievo committed Oct 9, 2023
1 parent 578ed40 commit 63e13af
Show file tree
Hide file tree
Showing 156 changed files with 6,809 additions and 9,874 deletions.
510 changes: 178 additions & 332 deletions README.md

Large diffs are not rendered by default.

53 changes: 51 additions & 2 deletions docs/assets/highlight.css
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,22 @@
--dark-hl-2: #CE9178;
--light-hl-3: #0000FF;
--dark-hl-3: #569CD6;
--light-hl-4: #008000;
--dark-hl-4: #6A9955;
--light-hl-4: #AF00DB;
--dark-hl-4: #C586C0;
--light-hl-5: #001080;
--dark-hl-5: #9CDCFE;
--light-hl-6: #008000;
--dark-hl-6: #6A9955;
--light-hl-7: #0070C1;
--dark-hl-7: #4FC1FF;
--light-hl-8: #267F99;
--dark-hl-8: #4EC9B0;
--light-hl-9: #000000;
--dark-hl-9: #C8C8C8;
--light-hl-10: #098658;
--dark-hl-10: #B5CEA8;
--light-hl-11: #000000FF;
--dark-hl-11: #D4D4D4;
--light-code-background: #FFFFFF;
--dark-code-background: #1E1E1E;
}
Expand All @@ -19,6 +33,13 @@
--hl-2: var(--light-hl-2);
--hl-3: var(--light-hl-3);
--hl-4: var(--light-hl-4);
--hl-5: var(--light-hl-5);
--hl-6: var(--light-hl-6);
--hl-7: var(--light-hl-7);
--hl-8: var(--light-hl-8);
--hl-9: var(--light-hl-9);
--hl-10: var(--light-hl-10);
--hl-11: var(--light-hl-11);
--code-background: var(--light-code-background);
} }

Expand All @@ -28,6 +49,13 @@
--hl-2: var(--dark-hl-2);
--hl-3: var(--dark-hl-3);
--hl-4: var(--dark-hl-4);
--hl-5: var(--dark-hl-5);
--hl-6: var(--dark-hl-6);
--hl-7: var(--dark-hl-7);
--hl-8: var(--dark-hl-8);
--hl-9: var(--dark-hl-9);
--hl-10: var(--dark-hl-10);
--hl-11: var(--dark-hl-11);
--code-background: var(--dark-code-background);
} }

Expand All @@ -37,6 +65,13 @@
--hl-2: var(--light-hl-2);
--hl-3: var(--light-hl-3);
--hl-4: var(--light-hl-4);
--hl-5: var(--light-hl-5);
--hl-6: var(--light-hl-6);
--hl-7: var(--light-hl-7);
--hl-8: var(--light-hl-8);
--hl-9: var(--light-hl-9);
--hl-10: var(--light-hl-10);
--hl-11: var(--light-hl-11);
--code-background: var(--light-code-background);
}

Expand All @@ -46,6 +81,13 @@
--hl-2: var(--dark-hl-2);
--hl-3: var(--dark-hl-3);
--hl-4: var(--dark-hl-4);
--hl-5: var(--dark-hl-5);
--hl-6: var(--dark-hl-6);
--hl-7: var(--dark-hl-7);
--hl-8: var(--dark-hl-8);
--hl-9: var(--dark-hl-9);
--hl-10: var(--dark-hl-10);
--hl-11: var(--dark-hl-11);
--code-background: var(--dark-code-background);
}

Expand All @@ -54,4 +96,11 @@
.hl-2 { color: var(--hl-2); }
.hl-3 { color: var(--hl-3); }
.hl-4 { color: var(--hl-4); }
.hl-5 { color: var(--hl-5); }
.hl-6 { color: var(--hl-6); }
.hl-7 { color: var(--hl-7); }
.hl-8 { color: var(--hl-8); }
.hl-9 { color: var(--hl-9); }
.hl-10 { color: var(--hl-10); }
.hl-11 { color: var(--hl-11); }
pre, code { background: var(--code-background); }
2 changes: 1 addition & 1 deletion docs/assets/search.js

Large diffs are not rendered by default.

50 changes: 23 additions & 27 deletions docs/classes/callers.Caller.html → docs/classes/Caller.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

56 changes: 26 additions & 30 deletions docs/classes/handlers.Handler.html → docs/classes/Handler.html

Large diffs are not rendered by default.

386 changes: 108 additions & 278 deletions docs/classes/RPCClient.html

Large diffs are not rendered by default.

348 changes: 123 additions & 225 deletions docs/classes/RPCServer.html

Large diffs are not rendered by default.

44 changes: 20 additions & 24 deletions docs/classes/callers.RawCaller.html → docs/classes/RawCaller.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

Large diffs are not rendered by default.

112 changes: 54 additions & 58 deletions docs/classes/errors.ErrorHandlerAborted.html

Large diffs are not rendered by default.

112 changes: 54 additions & 58 deletions docs/classes/errors.ErrorMissingCaller.html

Large diffs are not rendered by default.

112 changes: 54 additions & 58 deletions docs/classes/errors.ErrorMissingHeader.html

Large diffs are not rendered by default.

122 changes: 34 additions & 88 deletions docs/classes/errors.ErrorRPC.html

Large diffs are not rendered by default.

112 changes: 54 additions & 58 deletions docs/classes/errors.ErrorRPCCallerFailed.html

Large diffs are not rendered by default.

101 changes: 51 additions & 50 deletions docs/classes/errors.ErrorRPCConnectionInternal.html

Large diffs are not rendered by default.

101 changes: 51 additions & 50 deletions docs/classes/errors.ErrorRPCConnectionKeepAliveTimeOut.html

Large diffs are not rendered by default.

101 changes: 51 additions & 50 deletions docs/classes/errors.ErrorRPCConnectionLocal.html

Large diffs are not rendered by default.

101 changes: 51 additions & 50 deletions docs/classes/errors.ErrorRPCConnectionPeer.html

Large diffs are not rendered by default.

112 changes: 54 additions & 58 deletions docs/classes/errors.ErrorRPCHandlerFailed.html

Large diffs are not rendered by default.

101 changes: 51 additions & 50 deletions docs/classes/errors.ErrorRPCMessageLength.html

Large diffs are not rendered by default.

115 changes: 58 additions & 57 deletions docs/classes/errors.ErrorRPCMethodNotImplemented.html

Large diffs are not rendered by default.

115 changes: 58 additions & 57 deletions docs/classes/errors.ErrorRPCMissingResponse.html

Large diffs are not rendered by default.

115 changes: 57 additions & 58 deletions docs/classes/errors.ErrorRPCOutputStreamError.html

Large diffs are not rendered by default.

106 changes: 51 additions & 55 deletions docs/classes/errors.ErrorRPCParse.html

Large diffs are not rendered by default.

337 changes: 337 additions & 0 deletions docs/classes/errors.ErrorRPCProtocol.html

Large diffs are not rendered by default.

105 changes: 50 additions & 55 deletions docs/classes/errors.ErrorRPCRemote.html

Large diffs are not rendered by default.

Large diffs are not rendered by default.

296 changes: 296 additions & 0 deletions docs/classes/errors.ErrorRPCServerNotRunning.html

Large diffs are not rendered by default.

115 changes: 58 additions & 57 deletions docs/classes/errors.ErrorRPCStopping.html

Large diffs are not rendered by default.

112 changes: 54 additions & 58 deletions docs/classes/errors.ErrorRPCStreamEnded.html

Large diffs are not rendered by default.

112 changes: 54 additions & 58 deletions docs/classes/errors.ErrorRPCTimedOut.html

Large diffs are not rendered by default.

115 changes: 58 additions & 57 deletions docs/classes/errors.ErrorUtilsUndefinedBehaviour.html

Large diffs are not rendered by default.

428 changes: 0 additions & 428 deletions docs/classes/events.EventRPC.html

This file was deleted.

16 changes: 3 additions & 13 deletions docs/classes/events.EventRPCClient.html
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,9 @@ <h4>Hierarchy</h4>
<ul class="tsd-hierarchy">
<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>
<ul class="tsd-hierarchy">
<li><span class="target">EventRPCClient</span>
<ul class="tsd-hierarchy">
<li><a href="events.EventRPCClientDestroy.html" class="tsd-signature-type" data-tsd-kind="Class">EventRPCClientDestroy</a></li>
<li><a href="events.EventRPCClientDestroyed.html" class="tsd-signature-type" data-tsd-kind="Class">EventRPCClientDestroyed</a></li>
<li><a href="events.EventRPCClientCreate.html" class="tsd-signature-type" data-tsd-kind="Class">EventRPCClientCreate</a></li>
<li><a href="events.EventRPCClientCreated.html" class="tsd-signature-type" data-tsd-kind="Class">EventRPCClientCreated</a></li>
<li><a href="events.EventRPCClientError.html" class="tsd-signature-type" data-tsd-kind="Class">EventRPCClientError</a></li>
<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">
<ul>
<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>
<li><span class="target">EventRPCClient</span></li></ul></li></ul></section><aside class="tsd-sources">
<ul>
<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>
<section class="tsd-panel-group tsd-index-group">
<section class="tsd-panel tsd-index-panel">
<details class="tsd-index-content tsd-index-accordion" open><summary class="tsd-accordion-summary tsd-index-summary">
Expand Down Expand Up @@ -389,12 +382,9 @@ <h3><svg width="20" height="20" viewBox="0 0 24 24" fill="none"><path d="M4.9389
<ul>
<li class="current"><a href="../modules.html">@matrixai/rpc</a>
<ul>
<li class="tsd-kind-namespace"><a href="../modules/callers.html">callers</a></li>
<li class="tsd-kind-namespace"><a href="../modules/errors.html">errors</a></li>
<li class="current tsd-kind-namespace"><a href="../modules/events.html">events</a></li>
<li class="tsd-kind-namespace"><a href="../modules/handlers.html">handlers</a></li>
<li class="tsd-kind-namespace"><a href="../modules/middleware.html">middleware</a></li>
<li class="tsd-kind-namespace"><a href="../modules/types.html">types</a></li>
<li class="tsd-kind-namespace"><a href="../modules/utils.html">utils</a></li></ul></li></ul></div></details></nav>
<nav class="tsd-navigation secondary menu-sticky">
<ul>
Expand Down
Loading

0 comments on commit 63e13af

Please sign in to comment.