mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-09 00:19:13 +08:00
24 lines
1.5 KiB
Markdown
24 lines
1.5 KiB
Markdown
# Storybook Websocket Channel
|
|
|
|
[](https://circleci.com/gh/storybooks/storybook)
|
|
[](https://www.codefactor.io/repository/github/storybooks/storybook)
|
|
[](https://snyk.io/test/github/storybooks/storybook/8f36abfd6697e58cd76df3526b52e4b9dc894847)
|
|
[](https://bettercodehub.com/results/storybooks/storybook) [](https://codecov.io/gh/storybooks/storybook)
|
|
[](https://now-examples-slackin-rrirkqohko.now.sh/)
|
|
[](#backers) [](#sponsors)
|
|
|
|
* * *
|
|
|
|
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.
|
|
|
|
```js
|
|
import createChannel from '@storybook/channel-websocket';
|
|
|
|
const channel = createChannel({ url: 'ws://localhost:9001' });
|
|
```
|
|
|
|
* * *
|
|
|
|
For more information visit: [storybook.js.org](https://storybooks.js.org)
|