Skip to content

Conversation

foriequal0
Copy link
Contributor

this.rpc
.sendRpcRequest("net_getPort", [])
.then(result => {
if (typeof result === "number") {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think it's better to check whether the result is u16 value.

@joojis joojis merged commit 16fd6a4 into master Sep 17, 2018
@joojis joojis deleted the feature/rpc-net_getPort branch September 17, 2018 10:55
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants