Lines Matching refs:on
28 client.on('connect', common.mustCall(() => {
43 client.on('close', common.mustCall(() => {
59 socket.on('close', common.mustCall(() => {
64 req.on('error', common.expectsError({
72 req.on('response', common.mustNotCall());
101 req.on('end', common.mustNotCall());
102 req.on('close', common.mustCall(() => server.close()));
109 server.on('stream', common.mustCall((stream) => {
116 client.on('close', () => {
129 server.on('stream', common.mustNotCall());
134 server.on('connection', common.mustCall(() => {
148 server.on('stream', common.mustNotCall());
151 client.on('close', common.mustCall());
153 socket.on('close', common.mustCall(() => {
159 req.on('error', common.expectsError({
167 req.on('end', common.mustCall());
168 req.on('close', common.mustCall(() => server.close()));
177 server.on('stream', common.mustNotCall());
180 client.on('close', common.mustCall());
185 client.on('error', common.mustCall(() => {
192 req.on('error', common.mustCall((err) => {
196 req.on('close', common.mustCall(() => server.close()));
214 server.on('stream', common.mustNotCall());
217 client.on('close', common.mustCall());
224 client.on('error', common.mustCall(() => {
237 req.on('error', common.mustCall((err) => {
241 req.on('close', common.mustCall(() => server.close()));