mirror of
https://github.com/owncast/owncast.git
synced 2024-12-23 09:40:49 +03:00
11 lines
315 B
TypeScript
11 lines
315 B
TypeScript
|
import { ConnectedClientInfoEvent } from '../../../interfaces/socket-events';
|
||
|
|
||
|
export default function handleConnectedClientInfoMessage(
|
||
|
message: ConnectedClientInfoEvent,
|
||
|
setChatDisplayName: (string) => void,
|
||
|
) {
|
||
|
const { user } = message;
|
||
|
const { displayName } = user;
|
||
|
setChatDisplayName(displayName);
|
||
|
}
|