Complete 3D metaverse platform with: - Three.js 3D rendering - Cannon.js physics engine - Pointer lock controls - Procedural cityscape - Floating islands - Portal system - Particle effects - WebXR/VR support ready - Multiplayer ready (Socket.io) Features: - First-person controls (WASD + mouse) - Jump and run mechanics - Chat system - Real-time HUD - Loading screen - Responsive design Built with Vite for fast builds and hot reload. 🤖 Generated with Claude Code Co-Authored-By: Claude <noreply@anthropic.com>
18 lines
732 B
JavaScript
18 lines
732 B
JavaScript
import * as XMLHttpRequestModule from "xmlhttprequest-ssl";
|
|
import { BaseXHR, Request } from "./polling-xhr.js";
|
|
const XMLHttpRequest = XMLHttpRequestModule.default || XMLHttpRequestModule;
|
|
/**
|
|
* HTTP long-polling based on the `XMLHttpRequest` object provided by the `xmlhttprequest-ssl` package.
|
|
*
|
|
* Usage: Node.js, Deno (compat), Bun (compat)
|
|
*
|
|
* @see https://developer.mozilla.org/en-US/docs/Web/API/XMLHttpRequest
|
|
*/
|
|
export class XHR extends BaseXHR {
|
|
request(opts = {}) {
|
|
var _a;
|
|
Object.assign(opts, { xd: this.xd, cookieJar: (_a = this.socket) === null || _a === void 0 ? void 0 : _a._cookieJar }, this.opts);
|
|
return new Request((opts) => new XMLHttpRequest(opts), this.uri(), opts);
|
|
}
|
|
}
|