The Client.class and Server.class interface should be mostly the same. There are differences, but if a method with the same name is on both classes, it should work nearly the same.
For instance, it's ok that server.addRoute() takes a method array because it's a different situation. But you can call client.addRoute("bla", fn1, fn2, fn3) where at the server you need to do server.addRoute([methods], "bla", [fn1, fn2, fn3]).
The Client.class and Server.class interface should be mostly the same. There are differences, but if a method with the same name is on both classes, it should work nearly the same.
For instance, it's ok that
server.addRoute()
takes a method array because it's a different situation. But you can callclient.addRoute("bla", fn1, fn2, fn3)
where at the server you need to doserver.addRoute([methods], "bla", [fn1, fn2, fn3])
.