
Product
Announcing Precomputed Reachability Analysis in Socket
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
mui-react-chat
Advanced tools
npm install sportstalk-react-chat --save
yarn add sportstalk-react-chat
This library version using the Sportstalk Chat SDK v3.17
import React from 'react'
import { SportstalkChat, MessageItemActions } from 'sportstalk-react-chat'
export function Example() {
renderCustomActions = props =>
<MessageItemActions {...props} onDeleteMessage={...} />
return (
<SportstalkChat
appId={[YOUR_APP_ID]}
apiToken={[YOUR_API_TOKEN]}
renderActions={renderCustomActions}
/>
)
}
Name | Type | Required | Description |
---|---|---|---|
appId | string | Yes | Sportstalk app ID |
apiToken | string | Yes | Sportstalk app token |
ref | ReactRef | No | Access to Sportstalk Client SDK ( see here) |
onSend | function | No | Callback function when user send message |
renderLoading | function | No | Custom loading view compontnt when initializing app |
renderAvatar | function | No | Custom message avatar |
renderMessage | function | No | Custom text message |
renderAdvertisement | function | No | Custom component for Advertisement messages |
renderInputToolbar | function | No | Custom input bar |
renderActions | function | No | Custom action on the right of the messages |
Common message interface
interface IMessage {
id: string;
text: string;
direction: Message.MessageDirection;
createdAt?: string;
updatedAt?: string;
author?: TypedMessageAuthor;
replyTo?: Partial<IMessage>;
type?: Message.MessageType;
reactions: TypedMessageReaction[];
reports: TypedMessageReport[];
customPayload?: any;
}
User interface
interface User {
userid: string;
handle?: string;
handlelowercase?: string;
displayname?: string;
pictureurl?: string;
profileurl?: string;
banned?: boolean;
shadowbanned?: boolean;
role?: UserRole;
customtags?: string[];
shadowbanexpires?: string | null | undefined;
}
FAQs
## 1. Installation
The npm package mui-react-chat receives a total of 0 weekly downloads. As such, mui-react-chat popularity was classified as not popular.
We found that mui-react-chat demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Product
Socket’s precomputed reachability slashes false positives by flagging up to 80% of vulnerabilities as irrelevant, with no setup and instant results.
Product
Socket is launching experimental protection for Chrome extensions, scanning for malware and risky permissions to prevent silent supply chain attacks.
Product
Add secure dependency scanning to Claude Desktop with Socket MCP, a one-click extension that keeps your coding conversations safe from malicious packages.