termites 1.0.0 → 1.0.2

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.
package/README.md CHANGED
@@ -2,6 +2,10 @@
2
2
 
3
3
  A web-based terminal with server-client architecture for remote shell access.
4
4
 
5
+ ```bash
6
+ npm install -g termites
7
+ ```
8
+
5
9
  ## Architecture
6
10
 
7
11
  ```
@@ -30,7 +34,7 @@ npm install -g termites
30
34
  termites server
31
35
  ```
32
36
 
33
- The server starts on port 3456 by default. Access the web UI at `http://localhost:3456`.
37
+ The server starts on port 6789 by default. Access the web UI at `http://localhost:6789`.
34
38
 
35
39
  To use a different port:
36
40
 
@@ -41,12 +45,12 @@ PORT=8080 termites server
41
45
  ### Connect Client
42
46
 
43
47
  ```bash
44
- # Connect to localhost:3456
48
+ # Connect to localhost:6789
45
49
  termites client
46
50
 
47
51
  # Connect to a remote server
48
- termites client 192.168.1.100:3456
49
- termites client ws://example.com:3456
52
+ termites client 192.168.1.100:6789
53
+ termites client ws://example.com:6789
50
54
  ```
51
55
 
52
56
  ## Features
package/bin/termites.js CHANGED
@@ -13,13 +13,13 @@ Usage:
13
13
  termites client [url] Connect to a server
14
14
 
15
15
  Options:
16
- PORT=<port> Set server port (default: 3456)
16
+ PORT=<port> Set server port (default: 6789)
17
17
 
18
18
  Examples:
19
- termites server Start server on port 3456
19
+ termites server Start server on port 6789
20
20
  PORT=8080 termites server Start server on port 8080
21
- termites client Connect to ws://localhost:3456
22
- termites client 192.168.1.100:3456
21
+ termites client Connect to ws://localhost:6789
22
+ termites client 192.168.1.100:6789
23
23
  `);
24
24
  }
25
25
 
@@ -33,7 +33,7 @@ const rootDir = path.join(__dirname, '..');
33
33
  if (command === 'server') {
34
34
  require(path.join(rootDir, 'server.js'));
35
35
  } else if (command === 'client') {
36
- const serverUrl = args[1] || 'ws://localhost:3456';
36
+ const serverUrl = args[1] || 'ws://localhost:6789';
37
37
  process.argv = [process.argv[0], path.join(rootDir, 'client.js'), serverUrl];
38
38
  require(path.join(rootDir, 'client.js'));
39
39
  } else {
package/client.js CHANGED
@@ -3,7 +3,7 @@ const os = require('os');
3
3
  const WebSocket = require('ws');
4
4
 
5
5
  const SHELL = process.env.SHELL || '/bin/bash';
6
- const SERVER_URL = process.argv[2] || 'ws://localhost:3456/client';
6
+ const SERVER_URL = process.argv[2] || 'ws://localhost:6789/client';
7
7
 
8
8
  function getSystemInfo() {
9
9
  const username = os.userInfo().username;
package/index.js CHANGED
@@ -3,7 +3,7 @@ const http = require('http');
3
3
  const os = require('os');
4
4
  const WebSocket = require('ws');
5
5
 
6
- const PORT = process.env.PORT || 3456;
6
+ const PORT = process.env.PORT || 6789;
7
7
  const SHELL = process.env.SHELL || '/bin/bash';
8
8
 
9
9
  function getSystemInfo() {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "termites",
3
- "version": "1.0.0",
3
+ "version": "1.0.2",
4
4
  "description": "Web terminal with server-client architecture for remote shell access",
5
5
  "main": "index.js",
6
6
  "scripts": {
package/server.js CHANGED
@@ -3,7 +3,7 @@ const http = require('http');
3
3
  const WebSocket = require('ws');
4
4
  const crypto = require('crypto');
5
5
 
6
- const PORT = process.env.PORT || 3456;
6
+ const PORT = process.env.PORT || 6789;
7
7
 
8
8
  class WebShellServer {
9
9
  constructor(port) {