oorja 2.1.5 → 2.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,5 @@
1
1
  import { URL } from 'url';
2
- export declare const CLI_VERSION = 2.5;
2
+ export declare const CLI_VERSION = 2.6;
3
3
  import Conf from 'conf';
4
4
  export declare const config: Conf<string>;
5
5
  export type env = 'local' | 'prod';
@@ -1,5 +1,5 @@
1
1
  import chalk from 'chalk';
2
- export const CLI_VERSION = 2.5;
2
+ export const CLI_VERSION = 2.6;
3
3
  import Conf from 'conf';
4
4
  import { printExitMessage } from './utils.js';
5
5
  export const config = new Conf({
@@ -144,7 +144,7 @@ export class ConnectClient {
144
144
  access_token: this.config.token,
145
145
  },
146
146
  transport: WebSocket,
147
- heartbeatIntervalMs: 20_000,
147
+ heartbeatIntervalMs: 7500,
148
148
  binaryType: 'arraybuffer',
149
149
  encode: encodeMessage,
150
150
  decode: decodeMessage,
@@ -5,7 +5,6 @@ export const initScreen = (username, hostname, shell, multiplexed) => {
5
5
  if (multiplexed) {
6
6
  console.log(chalk.yellowBright('You have allowed room participants to write to your shell'));
7
7
  }
8
- console.log(chalk.blue(`${chalk.bold(`${username}@${hostname}`)} Spawning streaming shell: ${chalk.bold(`${shell}`)}`));
9
8
  console.log(`Note: Your shell size may adjust for optimum viewing experience for all participants.\n
10
9
  This session is end-to-end encrypted.
11
10
  To terminate stream run ${chalk.yellowBright('exit')} or press ${chalk.yellowBright('ctrl-d')} \n`);
@@ -39,10 +39,10 @@ export const teletypeApp = (options) => {
39
39
  multiplexed: options.multiplex,
40
40
  },
41
41
  onJoin: () => {
42
- initScreen(username, hostname, options.shell, options.multiplex);
43
42
  const stdin = options.process.stdin;
44
43
  const stdout = options.process.stdout;
45
44
  const dimensions = userDimensions[SELF];
45
+ console.log(chalk.blue(`${chalk.bold(`${username}@${hostname}`)} Spawning streaming shell: ${chalk.bold(`${options.shell}`)}`));
46
46
  term = spawn(options.shell, [], {
47
47
  name: 'xterm-256color',
48
48
  cols: dimensions.cols,
@@ -51,6 +51,7 @@ export const teletypeApp = (options) => {
51
51
  env: options.process.env,
52
52
  });
53
53
  ptyFuture.promise.then(() => {
54
+ initScreen(username, hostname, options.shell, options.multiplex);
54
55
  if (options.shell.endsWith('bash')) {
55
56
  stdout.write('Adjusting shell prompt to show streaming indicator\n');
56
57
  term.write("export PS1='📡 [streaming] '$PS1\n");
@@ -85,5 +85,5 @@
85
85
  ]
86
86
  }
87
87
  },
88
- "version": "2.1.5"
88
+ "version": "2.1.7"
89
89
  }
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "oorja",
3
3
  "description": "stream terminals to the web and more.",
4
- "version": "2.1.5",
4
+ "version": "2.1.7",
5
5
  "keywords": [
6
6
  "teletype",
7
7
  "terminal",