Lines Matching refs:on
16 server.on('stream', common.mustCall(onStream));
25 // on the socket, server and session.
26 socket.on('close', common.mustCall());
27 stream.on('close', common.mustCall());
28 server.on('close', common.mustCall());
29 stream.session.on('close', common.mustCall(() => server.close()));
31 // Also, the aborted event must be triggered on the stream
32 stream.on('aborted', common.mustCall());
40 server.on('listening', common.mustCall(async () => {
42 // The client may have an ECONNRESET error here depending on the operating
45 client.on('error', (err) => {
49 client.on('close', common.mustCall());
52 // The client may have an ECONNRESET error here depending on the operating
55 req.on('error', (err) => {
60 req.on('aborted', common.mustCall());