masx200

Results 188 comments of masx200

https://nodejs.org/dist/latest-v18.x/docs/api/esm.html#loaders https://rollupjs.org/guide/en/#plugins-overview

If the device is behind the multi-layer nat device, how to map the port to the external public ip? https://www.ip.cn/

```ts public send(data: Message) { if (this._ws && this._ws.readyState === this.OPEN) { this._debug('send', data); this._ws.send(data); } else { const {maxEnqueuedMessages = DEFAULT.maxEnqueuedMessages} = this._options; if (this._messageQueue.length < maxEnqueuedMessages) { this._debug('enqueue',...

Do any browsers support "websocket over http2" now?

https://www.rfc-editor.org/rfc/rfc9114.html

https://github.com/caddyserver/caddy/issues/4876

Thanks, I don't know how to write unit tests, and I'm just an amateur programmer.

My solution is to modify it as follows and everything works fine! ```js import http2 from "http2"; import Koa from "koa"; import fs from "fs"; import { fileURLToPath } from...

https://github.com/koajs/koa/blob/698ce0afbfac6480400625729a4b8fc4b4203fdc/lib/response.js#L535 I found the problem, if it is the'http2' server and the method is 'head', the "socket.writable" is "false". If it is the'http1' server, the "socket.writable" is "true".