Chapter 11. Leveraging Advanced Features
In this chapter, we will cover the following topics:
- Building custom server methods
- Creating custom EJSON objects
- Handling asynchronous events
- Using asynchronous functions
Introduction
There are some unique functions Meteor offers that make our lives in a full-stack development environment even easier. This chapter will go into these lesser-advertised areas of functionality, providing you with even more under the hood knowledge to make your applications elegant and powerful.
Building custom server methods
The majority of communications we perform between the client and server in Meteor is done via DDP. There are times, however, where direct server calls can come in very handy. For example, while you're testing, or as an admin, you may create some 'hidden'
helper methods to make debugging easier. In other instances, you may want to make very secure or very simple methods available to reduce the vulnerability or complexity of your...