(route)
| 936 | } |
| 937 | |
| 938 | function defaultBuildPrettyMeta (route) { |
| 939 | // return a shallow copy of route's sanitized context |
| 940 | |
| 941 | const cleanKeys = {} |
| 942 | const allowedProps = ['errorHandler', 'logLevel', 'logSerializers'] |
| 943 | |
| 944 | allowedProps.concat(supportedHooks).forEach(k => { |
| 945 | cleanKeys[k] = route.store[k] |
| 946 | }) |
| 947 | |
| 948 | return Object.assign({}, cleanKeys) |
| 949 | } |
| 950 | |
| 951 | function defaultClientErrorHandler (err, socket) { |
| 952 | // In case of a connection reset, the socket has been destroyed and there is nothing that needs to be done. |
nothing calls this directly
no outgoing calls
no test coverage detected