### Table of Contents - [constructor][1] - [constructor][2] - [constructor][3] - [getFuncRef][4] - [constructor][5] ## [index.js:11-18][6] a cbor decoder for the objects Type: [Object][7] ## constructor [index.js:47-49][8] an ID **Parameters** - `id` **[Buffer][9]** the id as an buffer ## constructor [index.js:64-69][10] A function reference **Parameters** - `opts` **[Object][7]** - `opts.identifier` **any** the function's identifier - `opts.actorID` **ID** the id of the actor - `opts.params` **[Array][11]** the params of the function ## constructor [index.js:87-90][12] A module reference **Parameters** - `exports` **[Object][7]** a map of exported function to params for the funcion if any - `id` **ID** the id of the actor ## getFuncRef [index.js:97-105][13] return a function refernce given the name of the function **Parameters** - `name` **[string][14]** Returns **FunctionRef** ## constructor [index.js:119-133][15] This implements Messages for Primea **Parameters** - `opts` **[Object][7]** - `opts.data` **[ArrayBuffer][16]** the payload of the message - `opts.caps` **[Array][11]<[Object][7]>** an array of capabilities to send in the message [1]: #constructor [2]: #constructor-1 [3]: #constructor-2 [4]: #getfuncref [5]: #constructor-3 [6]: https://github.com/primea/js-primea-objects/blob/136ef4bd7ca697c515688fa0a7b42c49930b5710/index.js#L11-L18 "Source code on GitHub" [7]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Object [8]: https://github.com/primea/js-primea-objects/blob/136ef4bd7ca697c515688fa0a7b42c49930b5710/index.js#L47-L49 "Source code on GitHub" [9]: https://nodejs.org/api/buffer.html [10]: https://github.com/primea/js-primea-objects/blob/136ef4bd7ca697c515688fa0a7b42c49930b5710/index.js#L64-L69 "Source code on GitHub" [11]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Array [12]: https://github.com/primea/js-primea-objects/blob/136ef4bd7ca697c515688fa0a7b42c49930b5710/index.js#L87-L90 "Source code on GitHub" [13]: https://github.com/primea/js-primea-objects/blob/136ef4bd7ca697c515688fa0a7b42c49930b5710/index.js#L97-L105 "Source code on GitHub" [14]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/String [15]: https://github.com/primea/js-primea-objects/blob/136ef4bd7ca697c515688fa0a7b42c49930b5710/index.js#L119-L133 "Source code on GitHub" [16]: https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/ArrayBuffer