storybook/lib/channel-websocket
Gytis Vinclovas e3eda2dd5e Websockets channel does not crash RN if connection fails.
Added optional onError argument to call on connection fail.

Async option for the channels.
2018-10-09 10:21:53 +03:00
..
2018-10-04 01:24:20 -07:00
2018-07-31 19:34:05 +03:00

Storybook Websocket Channel

Storybook Websocket Channel is a channel for Storybook that can be used when the Storybook Renderer should communicate with the Storybook Manager over the network. A channel can be created using the createChannel function.

import createChannel from '@storybook/channel-websocket';

const channel = createChannel({ url: 'ws://localhost:9001' });

For more information visit: storybook.js.org