Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

IDL (interface definition language) for RPC #608

Closed
tshemsedinov opened this issue Oct 24, 2016 · 0 comments
Closed

IDL (interface definition language) for RPC #608

tshemsedinov opened this issue Oct 24, 2016 · 0 comments
Assignees
Milestone

Comments

@tshemsedinov
Copy link
Member

Conceptual example:

{
  methods: {
    doSomething: { /* Fields */ }
  },
  events: {
    message: { /* Fields */ }
  }
}

We already have schema definition format to describe fields, example: https://github.com/metarhia/Impress/blob/master/schemas/config.application.definition.js
FYI: @DzyubSpirit, @belochub

@tshemsedinov tshemsedinov added this to the Version 0.2 milestone Oct 24, 2016
aqrln added a commit that referenced this issue Dec 5, 2016
This commit resolves the issue when a client could break the server by
calling a method with incorrect number of arguments causing a TypeError
exception ("callback is not a function").

Later a full-blown IDL for remote APIs (#608) will be implemented in
JSTP, so functions will be able to have optional parameters and
parameters with default values and JSTP will check the types of
arguments.
@tshemsedinov tshemsedinov modified the milestones: Version 0.3, Version 0.2 Jan 1, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants