Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

Comments

Fixed rpc call#13

Closed
adlerparnas wants to merge 5 commits intoOrange-OpenSource:masterfrom
adlerparnas:master
Closed

Fixed rpc call#13
adlerparnas wants to merge 5 commits intoOrange-OpenSource:masterfrom
adlerparnas:master

Conversation

@adlerparnas
Copy link

The fix is related to the function that is being called in the server.

Instead of receive the arguments on its position, it was receiving 2 argument, invId and the array of the array of arguments passed by the clients.

Yes, one array inside the other

Fixed arguments array passed to the registered rpc
Fixed array passed to the function
Passing session to the RPC function
Passing Session to the RPC function
exposed wsclient
@speigg
Copy link

speigg commented Sep 30, 2015

This does not look correct to me. I don't think there was a problem with the existing implementation.

@adlerparnas
Copy link
Author

Sorry! Some other commits were added in the pull request by mistake.

The functions registered on regrpc will always receive 2 parameters: 1ID and 1 array of arguments sent by the caller. Is that correct? Is that the expected?

If the caller sends argument: 1, 2, 3
the handler will receive: ID, [1, 2, 3]

Inside the change that I did, each argument sent by the caller would became a parameter on the handler registered

@adlerparnas adlerparnas closed this Oct 6, 2015
@speigg
Copy link

speigg commented Oct 7, 2015

There are problems with the regrpc/resrpc implementation I think. See #11 (comment)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants