powerman/rpc-codec

Add example of handling batch requests

Closed this issue · 4 comments

I didn't find any example of server with batch requests.

It would be appreciated if you add some :)

Server handle batch requests automatically, so there is no difference on server side.

When I followed specification, I was getting parser error. After removing comma between requests, it works fine.

Is it OK?

If correct per spec request request result in parser error then it's not OK. But this package has a tests for batch requests, so I believe batch should work. So, if you think there is a bug, then provide more details - what exactly you've sent, and which response you get.

Sorry, looks like it was my fault. Tried again and everything works.