mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 11:11:53 +08:00
20 lines
1.4 KiB
Markdown
20 lines
1.4 KiB
Markdown
# Storybook Websocket Channel
|
|
[](https://greenkeeper.io/)
|
|
[](https://travis-ci.org/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://storybooks-slackin.herokuapp.com/)
|
|
|
|
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: [storybooks.js.org](https://storybooks.js.org)
|