(schemaControllerOpts)
| 739 | } |
| 740 | |
| 741 | function setSchemaController (schemaControllerOpts) { |
| 742 | throwIfAlreadyStarted('Cannot call "setSchemaController"!') |
| 743 | const old = this[kSchemaController] |
| 744 | const schemaController = SchemaController.buildSchemaController( |
| 745 | old, |
| 746 | Object.assign({}, old.opts, schemaControllerOpts) |
| 747 | ) |
| 748 | this[kSchemaController] = schemaController |
| 749 | this.getSchema = schemaController.getSchema.bind(schemaController) |
| 750 | this.getSchemas = schemaController.getSchemas.bind(schemaController) |
| 751 | return this |
| 752 | } |
| 753 | |
| 754 | function setReplySerializer (replySerializer) { |
| 755 | throwIfAlreadyStarted('Cannot call "setReplySerializer"!') |
nothing calls this directly
no test coverage detected