test.method2 and test.method2b is calling test.method2c in the server and instantly returns Object {}.
If I tried calling test.method2c directly from the client, it shows the correct output hello world.
Meanwhile, if I used .await() on the called method, it shows the correct output as demonstrate in test.method1 and test.method1b.
Note that the called function have a promise that delayed for 5 seconds.
I do apologize if it is because of my own mistakes.
Test Method Code:
Results
Am I doing something wrong here?
test.method2
andtest.method2b
is callingtest.method2c
in the server and instantly returnsObject {}
. If I tried callingtest.method2c
directly from the client, it shows the correct outputhello world
.Meanwhile, if I used
.await()
on the called method, it shows the correct output as demonstrate intest.method1
andtest.method1b
.Note that the called function have a promise that delayed for 5 seconds.
I do apologize if it is because of my own mistakes.