Skip to content

Commit

Permalink
chore: Drop support for stompClientOptions property
Browse files Browse the repository at this point in the history
  • Loading branch information
SvenKirschbaum committed Jun 23, 2024
1 parent bd45690 commit 0b2dc5b
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
6 changes: 1 addition & 5 deletions src/components/StompSessionProvider.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@ import { StompSessionSubscription } from "../interfaces/StompSessionSubscription
* Please consult the @stomp/stompjs documentation for more information.
*/
function StompSessionProvider(props: StompSessionProviderProps) {
const { url, children, stompClientOptions, ...otherProps } = props;
let stompOptions = otherProps;

// Support old API
if (stompClientOptions) stompOptions = stompClientOptions;
const { url, children, ...stompOptions } = props;

const [client, setClient] = useState<Client | undefined>(undefined);
const subscriptionRequests = useRef(new Map());
Expand Down
4 changes: 0 additions & 4 deletions src/interfaces/StompSessionProviderProps.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,4 @@ import { ReactNode } from "react";
export interface StompSessionProviderProps extends StompConfig {
url: string;
children: ReactNode;
/**
* @deprecated
*/
stompClientOptions?: object;
}

0 comments on commit 0b2dc5b

Please sign in to comment.