Chat (client side)

By default, hub servers have a built-in chat API that you can use to embed a chat box in your experience to help build community.

Embedding it in an experience is made effortless with @moneypot/experience-react-sdk.

import { BaseStore } from "@moneypot/experience-react-sdk/store";
import { ChatBox } from "@moneypot/experience-react-sdk/component";

const baseStore = new BaseStore();

const App: React.FC = () => {
  return <ChatBox store={baseStore} />;
};

A more complete example can be found in the React template.