You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
// If we found multiple matches, there's going to be trouble
285
-
logger.error('found multiple candidates for event source');
286
-
}
287
-
288
-
// If we found no frames of matches
289
-
returnnull;
290
-
};
245
+
/**
246
+
* @deprecated This export is deprecated. Use `PostMessageTransport` instead. This API will be removed in 8.0.
247
+
*/
248
+
exportconstPostmsgTransport=PostMessageTransport;
291
249
292
250
/**
293
-
* Creates a channel which communicates with an iframe or child window.
251
+
* @deprecated This function is deprecated. Use the `createBrowserChannel` factory function from `@storybook/channels` instead. This API will be removed in 8.0.
252
+
* @param {Config} config - The configuration object.
* @deprecated This function is deprecated. Use the `createBrowserChannel` factory function from `@storybook/channels` instead. This API will be removed in 8.0.
262
+
* @param {Config} config - The configuration object.
@@ -80,28 +78,28 @@ export class WebsocketTransport {
80
78
}
81
79
}
82
80
81
+
/**
82
+
* @deprecated This function is deprecated. Use the `createBrowserChannel` factory function from `@storybook/channels` instead. This API will be removed in 8.0.
83
+
* @param {CreateChannelArgs} options - The options for creating the channel.
84
+
* @param {string} [options.url] - The URL of the WebSocket server to connect to.
85
+
* @param {boolean} [options.async=false] - Whether the channel should be asynchronous.
86
+
* @param {OnError} [options.onError] - A function to handle errors that occur during the channel's lifetime.
0 commit comments