(schemaControllerOpts)
| 746 | } |
| 747 | |
| 748 | function setSchemaController (schemaControllerOpts) { |
| 749 | throwIfAlreadyStarted(class="st">'Cannot call "setSchemaController"!') |
| 750 | const old = this[kSchemaController] |
| 751 | const schemaController = SchemaController.buildSchemaController( |
| 752 | old, |
| 753 | Object.assign({}, old.opts, schemaControllerOpts) |
| 754 | ) |
| 755 | this[kSchemaController] = schemaController |
| 756 | this.getSchema = schemaController.getSchema.bind(schemaController) |
| 757 | this.getSchemas = schemaController.getSchemas.bind(schemaController) |
| 758 | return this |
| 759 | } |
| 760 | |
| 761 | function setReplySerializer (replySerializer) { |
| 762 | throwIfAlreadyStarted(class="st">'Cannot call "setReplySerializer"!') |
nothing calls this directly
no test coverage detected