method Server.prototype.on
Usage in Deno
```typescript import { Server } from "node:node__http.d.ts"; ```
Server.prototype.on(event: "connection",listener: (socket: Socket) => void,): this
listener: (socket: Socket) => void
this
Server.prototype.on(event: "checkContinue",listener: RequestListener<Request, Response>,): this
listener: RequestListener<Request, Response>
this
Server.prototype.on(event: "checkExpectation",listener: RequestListener<Request, Response>,): this
listener: RequestListener<Request, Response>
this
Server.prototype.on(event: "clientError",listener: (err: Error,socket: stream.Duplex,) => void,): this
Server.prototype.on(event: "connect",listener: (req: InstanceType<Request>,socket: stream.Duplex,head: Buffer,) => void,): this
Server.prototype.on(event: "dropRequest",listener: (req: InstanceType<Request>,socket: stream.Duplex,) => void,): this
Server.prototype.on(event: "request",listener: RequestListener<Request, Response>,): this
listener: RequestListener<Request, Response>
this