1.1.1 • Published 12 months ago

@pixstream/ballancer v1.1.1

Weekly downloads
-
License
-
Repository
-
Last release
12 months ago

@pixstream/universal

https://github.com/MetahumanSDK/pixstream.js

Easy to use library for creating reallistic chat bots based on Epic Games® MetaHumans.

It is heavily based on the Epic Games® pixel streaming source code. But it's ported to Typescript and splited to different logic parts.

Naming

Streamer – Unreal Engine® based application that we want to stream.

Companion – NodeJs server that arrange connections to streamer.

Ballancer – server that equally distribute load between pairs: streamer and companion.

Getting started

Sample project: https://github.com/MetahumanSDK/metahuman-unreal-chat-streamer

install package npm i @pixstream/universal --save

then use is

const config = getConfigFromArgvOrDefault(DefaultBallancerConfig);

const ballancer = new BallancerServer({
    port: config.ballancerServer.port
});

server.options('/api/companion', cors());
server.get('/api/companion', cors(), (req, res) => {
    const companionServer = ballancer.getAvailableCompanionServer();

    if (companionServer === undefined || companionServer === null) {
      res.json({ error: 'No companion servers available' });
      return;
    }

    const connectionStrings: ICompanionConnectionSettings = {
      websocketUrl: Connection.toWebsocketUrl(companionServer.connection),
      serverUrl: Connection.toHttpUrl(companionServer.connection)
    }

    res.json(connectionStrings);
  });

ballancer.start();
1.1.1

12 months ago

1.1.0

12 months ago

1.0.28

1 year ago

1.0.27

2 years ago

1.0.22

2 years ago

1.0.21

2 years ago

1.0.25

2 years ago

1.0.24

2 years ago

1.0.23

2 years ago

1.0.20

2 years ago

1.0.19

2 years ago

1.0.18

2 years ago

1.0.17

2 years ago

1.0.16

2 years ago

1.0.9

2 years ago

1.0.8

2 years ago

1.0.7

2 years ago

1.0.6

2 years ago

1.0.5

2 years ago

1.0.4

2 years ago

1.0.3

2 years ago

1.0.11

2 years ago

1.0.10

2 years ago

1.0.15

2 years ago

1.0.14

2 years ago

1.0.13

2 years ago

1.0.12

2 years ago

1.0.2

2 years ago

1.0.1

2 years ago

1.0.0

2 years ago