createPostMessageSocketFactory
functionpostMessage transport, for attaching without a hub process.
signature
createPostMessageSocketFactory(target?): DevtoolsSocketFactoryBuilds a socket factory that carries the protocol over window.postMessage.
Parameters
| Name | Type | Description |
|---|---|---|
target? | BridgeWindow | Window to post to and listen on. Defaults to the global window. |
Returns
DevtoolsSocketFactory, A factory for withDevtools({ socketFactory }).
Example
example
withDevtools(store, { socketFactory: createPostMessageSocketFactory() });