Skip to content

Commit

Permalink
Fix full code sample in React Real-Time guide (directus#19299)
Browse files Browse the repository at this point in the history
  • Loading branch information
paescuj authored Jul 30, 2023
1 parent 4d88cfc commit e18bb21
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/guides/real-time/chat/react.md
Original file line number Diff line number Diff line change
Expand Up @@ -342,7 +342,7 @@ export default function App() {
event.preventDefault();
connectionRef.current = new WebSocket(url);
connectionRef.current.addEventListener('open', authenticate(formValue));
connectionRef.current.addEventListener('message', (message) => receiveMessage)(message);
connectionRef.current.addEventListener('message', (message) => receiveMessage(message));
};

const receiveMessage = (message) => {
Expand Down

0 comments on commit e18bb21

Please sign in to comment.