Skip to content

Latest commit

 

History

History
28 lines (20 loc) · 775 Bytes

README.md

File metadata and controls

28 lines (20 loc) · 775 Bytes

ReadMe

An example library for accessing Mozilla Hubs room via the WebSocket interface.

Library is written in Kotlin and contains some unit tests as examples of usage. For mutating operations the unit tests require updated authentication parameters.

Room Open

This is most easily done with a HTTP POST rather than using this library as follows:

POST https://hubs.mozilla.com/api/v1/hubs
Content-Type: application/json
Authorization: bearer <auth-token>

{
    "hub": {
        "name": "Some Name",
        "scene_id": "xxxxxxx"
        "default_environment_gltf_bundle_url": "Some Scene URL",
        "room_size": 30
    }
}

Room Close

This can be done with the API using the close_hub command and an empty payload.