10 lines
264 B
TypeScript
10 lines
264 B
TypeScript
import { WebSocket } from "@fosscord/gateway";
|
|
import { Payload } from "./index";
|
|
import { Server } from "../Server"
|
|
|
|
export async function onConnect(this: Server, socket: WebSocket, data: Payload) {
|
|
socket.send(JSON.stringify({
|
|
op: 15,
|
|
d: { any: 100 }
|
|
}))
|
|
} |