Often times we want to call a server method from the client and return a value. It happens, that on the server we call an asynchronous function. That means we have to wait for the result and then return it to the client. There are different approaches how to do this, but we use the Meteor._wrapAsync function for that job.
In this example we want to create a session for a video chat with tokbox. On the client side a user clicks a button to create the video chatroom.
On the server we defined the method createSession
I like this approach much more than working with Fibers directly because it is not that ugly, even though it is far from beautiful! But wrapAsynch (as the '' indicates) is not a final approach of dealing with asynchronous code in method calls, so i guess there will be something more handy in the hopefully near future.