Skip to content

Technical Aspects

Coding environment

webXR with Three.js

Transfer mechanism between computer and headset

Web server in computer application.

on macOS

  1. CocoaHTTPServer (Objective-C/Swift):
    • CocoaHTTPServer is a lightweight, open-source HTTP and WebSocket server library designed specifically for macOS and iOS applications. It provides support for HTTP methods and WebSocket upgrades.
    • It’s easy to integrate into macOS applications, and its flexibility allows you to customize the server behavior to suit your needs.
    • GitHub Repository: https://github.com/robbiehanson/CocoaHTTPServer
  2. Swifter (Swift):
    • Swifter is a Swift-based, lightweight HTTP server library for macOS and Linux. It’s designed to be easy to use and integrate into Swift applications.
    • While Swifter primarily focuses on HTTP, you can integrate WebSocket functionality using SwiftWebSocket or other WebSocket libraries to add WebSocket support.
    • GitHub Repository: https://github.com/httpswift/swifter
  3. Perfect (Swift):
    • Perfect is a versatile, server-side Swift framework that supports building web applications, including handling HTTP methods and WebSocket connections.
    • It is cross-platform and can be used on macOS. Perfect includes an HTTP server module with WebSocket support.
    • GitHub Repository: https://github.com/PerfectlySoft/Perfect

Other environments

  1. xpress.js (Node.js): PREFERRED
    • Express.js is a widely used Node.js web application framework that allows you to create robust and scalable web applications. It provides a powerful and flexible routing system, making it easy to handle HTTP methods like GET, PUT, POST, and DELETE.While Express.js itself does not natively support WebSockets, you can easily integrate WebSocket functionality using libraries like socket.io or ws alongside Express.js for real-time communication.
    Express.js: https://expressjs.com/
  2. Flask (Python):
    • Flask is a lightweight Python web framework that is easy to use and extend. It supports routing and allows you to handle GET, PUT, POST, and DELETE HTTP methods with ease.
    • For WebSocket support in Flask, you can use libraries like Flask-SocketIO or Flask-Socket-Redis to implement real-time features.
    Flask: https://flask.palletsprojects.com/
  3. ASP.NET Core (C#):
    • ASP.NET Core is a high-performance, cross-platform framework for building modern, cloud-based, and internet-connected applications. It provides a robust web server framework that can handle HTTP methods like GET, PUT, POST, and DELETE.
    • ASP.NET Core also offers SignalR, a library for real-time web functionality that includes WebSocket support for building interactive, real-time applications.
    ASP.NET Core: https://dotnet.microsoft.com/apps/aspnet

Data format to transfer for Library

JSON with visual-meta for documents and JSON for Library layout and preferences.

For Documents simply wrap this method of Visual-Meta in to JSON : https://visual-meta.info/visual-meta-ai/