mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
# Conflicts: # addons/actions/package.json # addons/backgrounds/package.json # addons/notes/package.json # lib/channel-websocket/package.json # lib/core/src/server/templates/base-manager-head.html # lib/core/src/server/templates/base-preview-head.html # lib/ui/package.json # lib/ui/src/modules/ui/components/search_box.js # lib/ui/src/modules/ui/components/shortcuts_help.js # yarn.lock
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