12 lines
359 B
TypeScript
12 lines
359 B
TypeScript
import { ConnectedClientInfoEvent } from '../../../interfaces/socket-events';
|
|
|
|
export default function handleConnectedClientInfoMessage(
|
|
message: ConnectedClientInfoEvent,
|
|
setChatDisplayName: (string) => void,
|
|
) {
|
|
console.log('connected client', message);
|
|
const { user } = message;
|
|
const { displayName } = user;
|
|
setChatDisplayName(displayName);
|
|
}
|