initial stompClient integration

This commit is contained in:
Zhongheng Liu 2023-12-21 14:14:55 +02:00
commit 81226dcaf3
No known key found for this signature in database
4 changed files with 26 additions and 15 deletions

13
src/Chat/Message.tsx Normal file
View file

@ -0,0 +1,13 @@
import React from "react";
export const Message = (
{
sender, text,
}: {
sender: string;
text: string;
}
): React.ReactElement<{ sender: string; text: string; }> => {
return (<p>Message from {sender}: {text}</p>);
};