method Http2Session.emit
Usage in Deno
```typescript import { type Http2Session } from "node:node__http2.d.ts"; ```
Http2Session.emit(event: "frameError",frameType: number,errorCode: number,streamID: number,): boolean
Http2Session.emit(event: "goaway",errorCode: number,lastStreamID: number,opaqueData?: Buffer,): boolean