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
This discussion was converted from issue #12993 on May 18, 2020 08:28.
Heading
Bold
Italic
Quote
Code
Link
Numbered list
Unordered list
Task list
Attach files
Mention
Reference
Menu
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
A clear and concise description of what the bug is.
My websocket middleware is broken. It was working in 9.3
To Reproduce
`import { websocketActionTypes } from '../action-types/websocket.action-types';
import { TypeSocket } from 'typesocket';
import { MiddlewareAPI } from 'redux';
interface MessageModel {
type: string;
}
export const createSocketMiddleware = (url: string, isServer: boolean) => {
return (store: MiddlewareAPI<any, any>) => {
if (isServer) {
return (next: (action: any) => void) => (action: any) => {
return next(action);
};
}
const socket = new TypeSocket(url, { maxRetries: 0 });
};
`
Steps to reproduce the behavior, please provide code snippets or a repository:
Expected behavior
A clear and concise description of what you expected to happen.
Screenshots
If applicable, add screenshots to help explain your problem.
System information
Additional context
Add any other context about the problem here.
Beta Was this translation helpful? Give feedback.
All reactions