mirror of
https://github.com/nestriness/nestri.git
synced 2026-08-02 01:35:18 +03:00
fix: For posterity, am committing this
This commit is contained in:
@@ -9,13 +9,12 @@ const myTestSession = session({
|
||||
framerate: 60,
|
||||
audioBitrate: 128,
|
||||
gpuCardPath: "/dev/dri/renderD128",
|
||||
|
||||
run: async (payload) => {
|
||||
console.log("Running test session with payload:", payload);
|
||||
return { message: "Test session completed" };
|
||||
},
|
||||
});
|
||||
|
||||
myTestSession.start().then((result) => {
|
||||
myTestSession.start({}).then((result) => {
|
||||
console.log("Session result:", result);
|
||||
});
|
||||
|
||||
@@ -1,10 +1,15 @@
|
||||
import { Session } from "@nestri/core/session/index";
|
||||
|
||||
type StartOptions = {
|
||||
memberID: string;
|
||||
userID: string;
|
||||
};
|
||||
|
||||
// Simple session creation function using our clean Session types
|
||||
export function createSession(config: Session.Config): Session.Session {
|
||||
const session: Session.Session = {
|
||||
description: config.description,
|
||||
start: async (payload: any) => {
|
||||
start: async (payload: any, options: StartOptions) => {
|
||||
console.log(
|
||||
`Starting session ${config.description} with payload:`,
|
||||
payload,
|
||||
|
||||
Reference in New Issue
Block a user