Join GitHub today
GitHub is home to over 31 million developers working together to host and review code, manage projects, and build software together.
Sign upPublic API design for 4.0 #731
Comments
sualko
added
the
discussion
label
Sep 25, 2018
jsxc
deleted a comment from
jsxc-bot
Sep 25, 2018
This comment has been minimized.
This comment has been minimized.
+1 for the proposal. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
sualko commentedSep 25, 2018
The current public API is mainly available directly under the
jsxc
namespace and can be called in any order. This means people can calljsxc.start
before they calljsxc.init
which is obviously a bad idea. A more chain-based approach could help here. This meansjsxc.init
would return the API which can only be called after the init method. This could also be handy in a multi-account setup, where you could get account specific APIs after calling somejsxc.getAccount
method. What are you thoughts?Current
Proposal