UNPKG

@needle-tools/engine

Version:

Needle Engine is a web-based runtime for 3D apps. It runs on your machine for development with great integrations into editors like Unity or Blender - and can be deployed onto any device! It is flexible, extensible and networking and XR are built-in.

16 lines (15 loc) 532 B
import type { PeerJSOption } from "peerjs"; import Peer from "peerjs"; export declare function getPeerOptions(): PeerJSOption | undefined; export declare function setPeerOptions(opts: PeerJSOption): void; export declare function getPeerjsInstance(id?: string, opts?: PeerJSOption): Peer; export declare class PeerNetworking { get isHost(): boolean; private _host?; private _client; private _clientData?; constructor(); onEnable(): void; private trySetupHost; private trySetupClient; }