Type Alias: ReactNativeServiceEntrypointOptions
说明
本页由源码中的注释生成,内容为英文。
ReactNativeServiceEntrypointOptions =
object
The options of reactNativeServiceEntrypoint.
Properties
middlewares?
optionalmiddlewares?:MiddlewareDefinition[]
The middlewares of this adapter's actions, run after the entrypoint's global middlewares.
name?
optionalname?:string
The adapter name, to tell apart several service adapters of one entrypoint.
pause?
optionalpause?: () =>void|Promise<void>
Called when the application goes to the background, before the host is told the application is ready for it (on iOS, the application keeps running until then, for the time the system gives): write what has to be written. Its failure is ignored.
Returns
void | Promise<void>
resume?
optionalresume?: () =>void|Promise<void>
Called when the application comes back from the background. Its failure is ignored.
Returns
void | Promise<void>
socket?
optionalsocket?:Duplex
The connection to the host, already open: a stream of lines of JSON both ways.
Default
a socket on the file descriptor given by the environment variable LAKUTATA_NODE_FD, which the native module of the application gives the Node.js it starts