new ProtoLoader()
Methods
-
<static> load(filename [, options])
-
Load service descriptors and client stub definitions from a .proto file.
Parameters:
Name Type Argument Description filename
string The filename of the .proto file. options
Object <optional>
The options used to load the .proto file. Returns:
The loaded service descriptors and client stub definitions.- Type
- *