IPWorks WebSockets 2020 Node.js Edition

Questions / Feedback?

ConnectionRequest Event

Fired when a request for connection comes from a remote host.

Syntax

websocketproxy.on('ConnectionRequest', [callback])

Callback

The 'callback' is called when the 'ConnectionRequest' event is emited.

function(e){ }

The argument 'e' has the following properties:

e.address
e.port
e.accept

Remarks

This event indicates an incoming connection. The connection is accepted by default. Address and Port will contain information about remote host requesting the inbound connection. If you want to refuse it, you can set the Accept parameter to False.

Copyright (c) 2022 /n software inc. - All rights reserved.
IPWorks WebSockets 2020 Node.js Edition - Version 20.0 [Build 8155]