1.0.1 • Published 4 months ago

@pod-arcade/session v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 months ago

@pod-arcade/session

This package contains the component used to provide the desktop experience for a Pod Arcade session. This component is built using @mui/material and so if you want to override the styling, you can use a custom theme provider.

Installation

npm install @pod-arcade/session

Usage

import React from 'react';
import Session from '@pod-arcade/session';

const App = () => {
  return (
    <Session
      mqttUrl={
        /* URL to the MQTT broker running on the Pod Arcade server */
        'wss://localhost/mqtt'
      }
      mqttCredentials={
        /* Credentials for the MQTT broker running on the Pod Arcade server (or undefined) */
        {
          username: '',
          password: '',
        }
      }
      mqttTopicPrefix={
        /* Prefix for the MQTT topics used by the Pod Arcade server */
        'desktops/{{desktopId}}',
      }
      features={{
        mouse: true,
        keyboard: true,
        gamepads: {
          enabled: true,
          count: 4,
        },
      }}
      sessionId={'' /* Unique id for the session */}
      userInfo={{
        name: 'User Name',
        avatar: 'https://example.com/avatar.png',
      }}
    />
  );
};
1.0.1

4 months ago

1.0.0

4 months ago

0.9.7

5 months ago

0.9.6

5 months ago

0.9.4

5 months ago

0.9.3

5 months ago

0.9.5

5 months ago

0.9.2

5 months ago

0.9.1

5 months ago

0.8.5

5 months ago

0.9.0

5 months ago

0.8.4

5 months ago

0.8.1

5 months ago

0.8.0

5 months ago

0.8.3

5 months ago

0.8.2

5 months ago

0.7.0

5 months ago

0.6.3

5 months ago