Added support for encoding many method calls in one post or Websocekt call

Added support for encoding many method calls in one post or Websocekt
call