File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -29,16 +29,15 @@ exports[`has custom logger 1`] = `
2929" INFO Hi from custom logger at 1970-01-01 00:00:00
3030 Field: 1
3131
32- FATAL Port 31337 already in use at 1970-01-01 00:00:00
33- Another Logux server or other app already running on this port.
34- Probably you haven’t stopped server from other project or previous
35- version of this server was not killed.
36-
37- $ su - root
38- # netstat -nlp | grep 31337
39- Proto Local Address State PID/Program name
40- tcp 0.0.0.0:31337 LISTEN 777/node
41- # sudo kill -9 777
32+ INFO Logux server is listening at 1970-01-01 00:00:00
33+ PID: 21384
34+ Environment: test
35+ Logux server: 0.0.0
36+ Min subprotocol: 1
37+ Node ID: server:FnXaqDxY
38+ Subprotocol: 1
39+ Health check: http://127.0.0.1:31337/health
40+ Listen: ws://127.0.0.1:31337/
4241
4342 INFO Shutting down Logux server at 1970-01-01 00:00:00
4443
@@ -101,6 +100,13 @@ exports[`shows help about privileged port 1`] = `
101100"
102101`;
103102
103+ exports[`shows help about unknown option 1`] = `
104+ " FATAL Missed minSubprotocol option in server constructor at 1970-01-01 00:00:00
105+ Check server constructor and Logux Server documentation
106+
107+ "
108+ `;
109+
104110exports[`shows uncatch errors 1`] = `
105111" FATAL Test Error at 1970-01-01 00:00:00
106112 fake stacktrace
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ import { Server } from '../../index.js'
55let app = new Server (
66 Server . loadOptions ( process , {
77 host : '127.0.0.1' ,
8- minSubprotocol : 1 ,
8+ maxSubprotocol : 1 ,
99 subprotocol : 1
1010 } )
1111)
You can’t perform that action at this time.
0 commit comments