sipher/src/lib/sockets/events/message.ts
Nixyan 45301ac52b Add friend request functionality and user status updates
- Implemented a modal for sending and managing friend requests, allowing users to send, accept, decline, or ignore requests.
- Enhanced user status management by integrating real-time updates for online, busy, offline, and away statuses.
- Updated the API and database schema to support new friend request and user status features.
- Improved socket management for better connection handling and user experience.
- Refactored UI components to accommodate new functionalities while maintaining consistency.
2025-12-28 01:10:31 -03:00

11 lines
No EOL
358 B
TypeScript

import { Socket, Server as SocketIOServer } from "socket.io";
export default {
name: "message",
handler: (socket: Socket, io: SocketIOServer, ...args: any[]) => {
console.log("Message received", args)
},
description: "Send a message to a channel by using the server-side encryption",
category: "server",
type: "message"
} satisfies SiPher.EventsType