websocket-chat / dist /services /MessageService.d.ts
harsh-dev's picture
Add application file
a7476ec unverified
raw
history blame contribute delete
535 Bytes
import RoomServices from './RoomServices.js';
import WebSocket from 'ws';
declare class MessageService {
username: string;
message: string;
room_id: string;
action: string;
rooms: RoomServices;
con: WebSocket;
constructor({ msg, rooms, con, }: {
msg: string;
rooms: RoomServices;
con: WebSocket;
});
join(): void;
leave(): void;
broadcast(): void;
broadcast_message(msg: string): void;
}
export default MessageService;
//# sourceMappingURL=MessageService.d.ts.map