Skip to content

Commit

Permalink
dinge
Browse files Browse the repository at this point in the history
  • Loading branch information
laubsauger committed Feb 11, 2024
1 parent ecba352 commit 5701d7e
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 2 deletions.
2 changes: 1 addition & 1 deletion public/electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ async function handleServerStop (event, message) {

function createWindow() {
const win = new BrowserWindow({
width: 800,
width: 1024,
height: 750,
webPreferences: {
nodeIntegration: false,
Expand Down
15 changes: 15 additions & 0 deletions public/server.js
Original file line number Diff line number Diff line change
Expand Up @@ -228,6 +228,8 @@ class SocketOSCServer {
));

this.pushSessionState({ usedSlots: payload.usedSlots });

// pushing the last host message on join to move late comers to the current phase instead of leaving them hanging
this.socket.emit('OSC_HOST_MESSAGE', this.sessionState.lastHostMessage);
});

Expand Down Expand Up @@ -442,6 +444,19 @@ class SocketOSCServer {
]
)
]
case 'game_start':
return [
createMessageArgs(
payload.client_index,
payload.message,
[
{
type: 's',
value: payload.mode,
}
]
)
]
default:
return [
createMessageArgs(
Expand Down
3 changes: 2 additions & 1 deletion src/components/SessionList/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ const SessionList = () => {
<Accordion >
{ socketStore.availableInstances.map(instance =>
<Accordion.Item key={instance.id} eventKey={String(instance.id)}>
<Accordion.Header>{ instance.id } :: { instance.name }</Accordion.Header>
<Accordion.Header>{ instance.name }</Accordion.Header>
{/*<Accordion.Header>{ instance.name } :: { instance.id } :::: { instance.id } :: </Accordion.Header>*/}
<Accordion.Body>
<Row>
<Col lg={6} md={12} className="mb-3">
Expand Down

0 comments on commit 5701d7e

Please sign in to comment.