зеркало из https://github.com/mozilla/hubs.git
23 строки
679 B
TypeScript
23 строки
679 B
TypeScript
import { AElement } from "aframe";
|
|
|
|
declare global {
|
|
const NAF: {
|
|
utils: {
|
|
isMine: (el: AElement) => boolean;
|
|
takeOwnership: (el: AElement) => boolean;
|
|
createNetworkId: () => string;
|
|
getNetworkedEntity: (el: AElement) => Promise<AElement>;
|
|
};
|
|
connection: {
|
|
getServerTime: () => number;
|
|
subscribeToDataChannel: (
|
|
dataType: string,
|
|
callback: (fromClientId: string, _dataType: string, data: any) => void
|
|
) => void;
|
|
sendDataGuaranteed: (clientId: string, dataType: string, message: any) => void;
|
|
broadcastDataGuaranteed: (dataType: string, message: any) => void;
|
|
};
|
|
clientId: string;
|
|
};
|
|
}
|