1.0.2 • Published 12 months ago
@pod-arcade/session v1.0.2
@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/sessionUsage
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.2
12 months ago
1.0.1
2 years ago
1.0.0
2 years ago
0.9.7
2 years ago
0.9.6
2 years ago
0.9.4
2 years ago
0.9.3
2 years ago
0.9.5
2 years ago
0.9.2
2 years ago
0.9.1
2 years ago
0.8.5
2 years ago
0.9.0
2 years ago
0.8.4
2 years ago
0.8.1
2 years ago
0.8.0
2 years ago
0.8.3
2 years ago
0.8.2
2 years ago
0.7.0
2 years ago
0.6.3
2 years ago