1.0.28 • Published 4 months ago

@pixstream/ballancer v1.0.28

Weekly downloads
-
License
-
Repository
-
Last release
4 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.0.28

4 months ago

1.0.27

5 months ago

1.0.22

11 months ago

1.0.21

11 months ago

1.0.25

7 months ago

1.0.24

7 months ago

1.0.23

7 months ago

1.0.20

11 months ago

1.0.19

11 months ago

1.0.18

11 months ago

1.0.17

11 months ago

1.0.16

11 months ago

1.0.9

11 months ago

1.0.8

11 months ago

1.0.7

12 months ago

1.0.6

12 months ago

1.0.5

1 year ago

1.0.4

1 year ago

1.0.3

1 year ago

1.0.11

11 months ago

1.0.10

11 months ago

1.0.15

11 months ago

1.0.14

11 months ago

1.0.13

11 months ago

1.0.12

11 months ago

1.0.2

1 year ago

1.0.1

1 year ago

1.0.0

1 year ago