Skip to content

Conversation

@jensh
Copy link

@jensh jensh commented Jun 13, 2014

Without this patch a call to an unknown method crash the server because "response" in line 97 is undefined.
Which testframework did you use for the tests in /test? I could try to write a test for this issue.

jensh added 3 commits June 13, 2014 19:21
With this a client can set a handler. With this a server rpc can
invoke a rpc at the client:
// rpc at the server
handler.pingpong = function(data, response) {
	// invoke a rpc on the client
	response.stream.invoke('pong', data, function (err, response2){
		// Send response to the client
		response.result(response2);
	});
};
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.

1 participant